R MAKDOWN AND LEAFLET
Elimane NDOYE
April 24, 2019
Create a web page using R Markdown that features a map created with Leaflet.
library(leaflet)
my_map <- my_map %>%
addMarkers(lat = 39.2980803, lng = -76.5898801,
popup = "Jeff Leek's Office")
my_map <- leaflet() %>%
addTiles() %>%
addMarkers(lat = 39.2980803, lng = -76.5898801,
popup = "Jeff Leek's Office")
my_map
library(leaflet)
my_map <- leaflet() %>%
addTiles() %>%
addMarkers(lat = 39.2980803, lng = -76.5898801,
popup = "Jeff Leek's Office")
my_map
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. ```
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.