Project Assignment and Review Criteria

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:

  1. Does the web page feature a date and is this date less than two months before the date that you’re grading this assignment?

  2. Does the web page feature an interactive map that appears to have been created with Leaflet?

Leaflet Interactive Map: My Alma Mater

Date Created:

date()
## [1] "Wed Sep 12 08:03:46 2018"

Create William and Mary Icon

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)

Use Leaflet Package to Create Interactive Map Displaying the College of William and Mary

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