%>% {mapdeck}R Documentation

Pipe

Description

Uses the pipe operator (%>%) to chain statements. Useful for adding layers to a mapdeck map

Arguments

lhs, rhs

A mapdeck map and a layer to add to it

Examples



key <- "your_api_key"
mapdeck(key = key) %>%
add_scatterplot(
  data = capitals
  , lat = "lat"
  , lon = "lon"
  , radius = 100000
  , fill_colour = "country"
  , layer_id = "scatter_layer"
)


[Package mapdeck version 0.3.3 Index]