palette | R Documentation |
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.
palette(x = character())
validate_palette(x)
is_palette(x)
as_palette(x)
x |
A character vector of colors |
a palette vector
palette(roygbiv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.