Get a unique set of palettes from pals, ordered by preference.
get_palettes(
preferred = c("brewer.spectral", "brewer.brbg", "brewer.piyg", "brewer.puor"),
n_pals = NULL,
n = 8,
names_only = FALSE
)
Preferred palette names. Will be moved to the top of the list.
Max number of palettes to return.
Max number of colors to return per palette.
Only applicable when names_only=FALSE
.
Only return the names of the palettes
(TRUE
), rather than a named list of colors for each palette
(default: TRUE
).
Vector of palette names.
palettes <- get_palettes()