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!
Review Criteria:
Does the web page feature a date and is this date less than two months before the date that you’re grading this assignment?
Does the web page feature an interactive map that appears to have been created with Leaflet?
date()
## [1] "Wed Sep 12 08:03:46 2018"
Load the Leaflet library
library(leaflet)
Assign image URL to variable and set height/width of created icon
myIcon <- makeIcon(iconUrl = "https://pbs.twimg.com/profile_images/585094325526224896/PlWm4j5E.png", iconWidth = 50, iconHeight = 50, iconAnchorX = 30, iconAnchorY = 30)
my_map <- leaflet() %>% addTiles()
my_map <- my_map %>% addMarkers(lat = 37.27176, lng = -76.713443, popup = "My Alma Mater", icon = myIcon, label = "The College of William and Mary")
my_map