In this document I will be creating a map with leaflet. I will first set up the libraries that I will need in R. And then I will create my map.
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
Here I am going to create a map of my favorite place to go on vacation!
mymap <- leaflet() %>%
addTiles() %>%
addMarkers(lat=39.126598, lng=-78.471763, popup = "Capon Springs and Farms")
mymap