mapviewColors: mapview version of leaflet::color* functions

View source: R/color.R

mapviewColorsR Documentation

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(s)

Tim Appelhans

See Also

level.colors

colorRampPalette


mapview documentation built on April 17, 2022, 1:05 a.m.