Learn R Programming

mapdeck (version 0.3.5)

mapdeck_style: Mapdeck Style

Description

Various styles available to all Mapbox accounts using a valid access token. Available styles are listed at https://docs.mapbox.com/api/maps/#styles.

Usage

mapdeck_style(
  style = c("dark", "light", "outdoors", "streets", "satellite", "satellite-streets")
)

Arguments

style

one of streets, outdoors, light, dark, satellite, satellite-streets

Examples

Run this code
# \donttest{

## You need a valid access token from Mapbox
key <- 'abc'

## set a map style
mapdeck(token = key, style = mapdeck_style("dark"))

# }

Run the code above in your browser using DataLab