Learn R Programming

mapview (version 1.1.0)

mapviewColors: mapview version of leaflet::colorNumeric

Description

mapview version of leaflet::colorNumeric

Usage

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

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

See Also

level.colors