mapviewColors | R Documentation |
mapview version of leaflet::color* functions
Color palettes for mapview
mapviewColors(
x,
zcol = NULL,
colors = mapviewGetOption("vector.palette"),
at = NULL,
na.color = mapviewGetOption("na.color"),
...
)
mapviewPalette(name = "mapviewVectorColors")
mapViewPalette(name)
x |
Spatial* or Raster* object |
zcol |
the column to be colored |
colors |
color vector to be used for coloring the levels specified in at |
at |
numeric vector giving the breakpoints for the colors |
na.color |
the color for NA values. |
... |
additional arguments passed on to |
name |
Name of the color palette to be used. One of "mapviewVectorColors" (default), "mapviewRasterColors", "mapviewSpectralColors" or "mapviewTopoColors". |
Tim Appelhans
level.colors
colorRampPalette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.