Color Mapping
palette_color_continuous(x, palette = NULL, domain = NULL, na = "#DDDDDD", ...)palette_color_discrete(
x,
palette = NULL,
domain = NULL,
ordered = FALSE,
na = "#DDDDDD",
...
)
A character
vector of colors.
A vector of values.
A vector of colors or a color function
that values will be
mapped to (see grDevices::colorRamp()
).
A numeric
range or categorical data (according to x
).
The color to return for NA
values.
Currently not used.
A logical
scalar: should the levels be treated as already
in the correct order?
Other palettes:
palette_shape()
,
palette_size()