| title: "Rmarkdown Presentation including Leaflet" |
| revealjs::revealjs_presentation |
| knitr::opts_chunk$set(echo = FALSE) |
| knitr::opts_template$set(demo = list(echo = TRUE, eval = FALSE)) |
| addTiles() %>% # Add default OpenStreetMap map tiles |
| addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R") |
| ```{r simple, opts.label = "demo"} |
| df <- read.csv(textConnection( |
| Samurai Noodle,47.597131,-122.327298 |
| Kukai Ramen,47.6154,-122.327157 |
| Tsukushinbo,47.59987,-122.326726" |
| leaflet(df) %>% addTiles() %>% |
| addMarkers(~Long, ~Lat, popup = ~htmlEscape(Name)) |
| ```{r popups, opts.label = "demo"} |