Developing Data Products-Week 2-Assignment

My First Map Let’s create a map that shows the Gol-Ghar, Patna, Bihar.

To do that, let’s first load the library Leaflet.

installed.packages("leaflet")
##      Package LibPath Version Priority Depends Imports LinkingTo Suggests
##      Enhances License License_is_FOSS License_restricts_use OS_type Archs
##      MD5sum NeedsCompilation Built
library("leaflet")
## Warning: package 'leaflet' was built under R version 4.1.3

Create the map of Patna, Bihar

my_map <- leaflet() %>%
addTiles()

Create a link to the office site of Gol-ghar, which we could get relevant information.

Golghar <- c("<a href= 'https://en.wikipedia.org/wiki/Golghar' >Gol-ghar</a>")
leaflet() %>%
addTiles() %>%
addMarkers(lat=25.62050144102829, lng=85.1394479973778, popup = Golghar)