Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_palette

Get Palette


Description

retrieves one of the available palettes

Usage

get_palette(palette, rgb = TRUE)

Arguments

palette

one of the available paletes. See colour_palettes

rgb

logical indicating if the palette should be returned as an RGB matrix TRUE, or a vector of hex strings FALSE

Value

3 column matrix if rgb = TRUE, otherwise a 256-length vector.

Examples

get_palette( "viridis" )
get_palette( "rainbow" )

colourvalues

Assigns Colours to Values

v0.3.7
GPL-3
Authors
David Cooley [aut, cre]
Initial release
2020-12-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.