palette_color: Color Mapping

palette_colorR Documentation

Color Mapping

Description

Color Mapping

Usage

palette_color_continuous(x, palette = NULL, domain = NULL, na = "#DDDDDD", ...)

palette_color_discrete(
  x,
  palette = NULL,
  domain = NULL,
  ordered = FALSE,
  na = "#DDDDDD",
  ...
)

Arguments

x

A vector of values.

palette

A vector of colors or a color function that values will be mapped to (see grDevices::colorRamp()).

domain

A numeric range or categorical data (according to x).

na

The color to return for NA values.

...

Currently not used.

ordered

A logical scalar: should the levels be treated as already in the correct order?

Value

A character vector of colors.

See Also

Other palettes: palette_shape(), palette_size()


tesselle/arkhe documentation built on Feb. 22, 2024, 8:18 p.m.