View source: R/mapdeck_dependencies.R
add_dependencies | R Documentation |
Adds the required mapdeck javascript dependencies to a map when not using a mapdeck map.
add_dependencies(map)
map |
the map object to which dependencies will be added |
## use with a google map from googleway
library(googleway)
set_key("GOOGLE_MAP_KEY")
google_map() %>%
add_dependencies() %>%
add_scatterplot(
data = capitals
, lon = "lon"
, lat = "lat"
, fill_colour = "country"
, radius = 10000
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.