palette {palette} | R Documentation |
Create a palette
Description
A palette
is a class for color palettes built on vctrs
. It is represented
as a character vector of hexadecimal color codes. Named colors (like 'red'
)
are translated to hexadecimal color codes.
Usage
palette(x = character())
validate_palette(x)
is_palette(x)
as_palette(x)
Arguments
x |
A character vector of colors |
Value
a palette vector
Examples
palette(roygbiv)
[Package palette version 0.0.2 Index]