Create a web page using R Markdown that features a map created with Leaflet.
Host your webpage on either GitHub Pages, RPubs, or NeoCities.
Your webpage must contain the date that you created the document, and it must contain a map created with Leaflet. We would love to see you show off your creativity!
library(leaflet)
new_icon <- awesomeIcons(
icon = 'ios-close',
iconColor = 'black',
library = 'ion',
markerColor = "red"
)
content <- paste(sep = "<br/>",
"<b>Uniworld City</b>",
"New Town",
"Kolkata, 700156"
)
my_map <- leaflet() %>%
addTiles() %>%
addAwesomeMarkers(lat = 18.593470, lng = 73.795123,
icon = new_icon,
popup = "Good Society") %>%
addPopups(lat = 18.593417, lng = 73.795595, content,
options = popupOptions(closeButton = FALSE)
)
my_map