%>% | R Documentation |
Uses the pipe operator (%>%
) to chain statements. Useful for adding
layers to a mapdeck
map
lhs , rhs |
A mapdeck map and a layer to add to it |
token <- "your_api_token"
mapdeck(token = token) %>%
add_scatterplot(
data = capitals
, lat = "lat"
, lon = "lon"
, radius = 100000
, fill_colour = "country"
, layer_id = "scatter_layer"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.