R Markdown

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!

Assignment:

library(leaflet)
library(dplyr)  
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
place <- c("Memorial Sloan Kettering Cancer Center", "Subway Station", "My place")
lat <- c(40.764692531689015, 40.76823569949166, 40.78784121969816)
lng <- c(-73.95731436199758, -73.96248448622029, -73.94866910218857)
df <- data.frame(place, lat, lng)

df %>%
  leaflet() %>%
  addTiles()  %>%
  addMarkers(lat=lat, lng=lng)