powered by
retrieves one of the available palettes
get_palette(palette, rgb = TRUE)
3 column matrix if rgb = TRUE, otherwise a 256-length vector.
rgb = TRUE
one of the available paletes. See colour_palettes
logical indicating if the palette should be returned as an RGB matrix TRUE, or a vector of hex strings FALSE
TRUE
FALSE
get_palette( "viridis" ) get_palette( "rainbow" )
Run the code above in your browser using DataLab