Interactive Maps with Leaflet
Earlier we saw a static visualization of places in Singapore now we can explore an interactive version of the same using leaflet.
library(leaflet)
hundred.places <- df[1:100,]
hundred.places.viz <- leaflet() %>%
addTiles() %>%
addMarkers(data=hundred.places,
lng=hundred.places$Longitude,
lat=hundred.places$Latitude)
hundred.places.viz