get_palette {colourvalues}R 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" )


[Package colourvalues version 0.3.9 Index]