get_palette | R Documentation |
retrieves one of the available palettes
get_palette(palette, rgb = TRUE)
palette |
one of the available paletes. See colour_palettes |
rgb |
logical indicating if the palette should be returned as an RGB matrix
|
3 column matrix if rgb = TRUE
, otherwise a 256-length vector.
get_palette( "viridis" )
get_palette( "rainbow" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.