palette: Load a palette in hex definition

Description Usage Arguments Value

Description

See the available palettes using list_palettes. pal will also search for the palette name in RColorBrewer and return it if found.

Usage

1
palette(palette.name, n = NULL, evenly.spaced = TRUE)

Arguments

palette.name

the palette's name

n

the number of colors to return, will default to the actual size of the palette, will recycle when necessary

evenly.spaced

if TRUE, when the pallete has e.g. 5 colors but only 3 are requested, color 1, 3, and 5 will be returned.

Value

a character vector of hex colors


danielmarcelino/SciencesPo documentation built on Oct. 20, 2019, 1:15 a.m.