get_palette: Get Palette

Description Usage Arguments Value Examples

View source: R/palettes.R

Description

retrieves one of the available palettes

Usage

1

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

1
2
get_palette( "viridis" )
get_palette( "rainbow" )

colourvalues documentation built on Dec. 8, 2020, 1:06 a.m.