Qualpal
Repositories

Retrieve one of the built-in color palettes

R · r · 2.1.0

get_palette

This function retrieves a color palette from the built-in palettes. To see the available palettes, use list_palettes().

Usage

get_palette(palette = "ColorBrewer:Accent")

Arguments

palette

A character string specifying the name of the color palette to

Value

A character vector of colors in hex format.

Examples

get_palette("Vermeer:LittleStreet")
 [1] "#9D3D2D" "#99A8A5" "#8F4C2D" "#6A6A54" "#EADAC5" "#27221F" "#727C73"
 [8] "#C9AA82" "#3A2D22" "#8F5144" "#C9BDA3"

See also

list_palettes()