Learn R Programming

mapview (version 2.11.2)

mapviewColors: mapview version of leaflet::color* functions

Description

mapview version of leaflet::color* functions

Color palettes for mapview

Usage

mapviewColors(
  x,
  zcol = NULL,
  colors = mapviewGetOption("vector.palette"),
  at = NULL,
  na.color = mapviewGetOption("na.color"),
  ...
)

mapviewPalette(name = "mapviewVectorColors")

mapViewPalette(name)

Arguments

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 level.colors

name

Name of the color palette to be used. One of "mapviewVectorColors" (default), "mapviewRasterColors", "mapviewSpectralColors" or "mapviewTopoColors".

Author

Tim Appelhans

See Also

level.colors

colorRampPalette