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)
icon1 <- awesomeIcons(
icon = 'map-pin',
iconColor = 'black',
library = 'fa',
markerColor = 'red'
)
icon2 <- awesomeIcons(
icon = 'ios-close',
iconColor = 'black',
library = 'ion',
markerColor = 'red'
)
my_map <- leaflet() %>%
addTiles() %>%
addAwesomeMarkers(lat = 27.1751, lng = 78.0421,
icon = icon1,
popup = "Taj Mahal") %>%
addAwesomeMarkers(lat = 27.1680, lng = 78.0490,
icon = icon2,
popup = "Hotel")
my_map