get_palette: Get Palette

View source: R/palettes.R

get_paletteR Documentation

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 documentation built on April 11, 2023, 6:08 p.m.