Makes the open-source JavaScript library OpenLayers available within R via the htmlwidgets package.
1 2 3 4 5 6 7 | ## Not run:
ol() %>% add_osm_tiles()
ol() %>% add_stamen_tiles() %>%
add_features(geojsonio::us_cities[1:5, ])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.