get_palettes | R Documentation |
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 |
Preferred palette names. Will be moved to the top of the list. |
n_pals |
Max number of palettes to return. |
n |
Max number of colors to return per palette.
Only applicable when |
names_only |
Only return the names of the palettes
( |
Vector of palette names.
palettes <- get_palettes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.