View source: R/expand_named_palette.R
expand_named_palette | R Documentation |
Give a vector or a named vector of rgb hex colors, and this will expand them out adding alpha values, and appending 1, 2, 3, etc, to the names. If there are no names, then they will be assigned names from the alphabet.
expand_named_palette(pal, return_list = TRUE)
pal |
A (named) vector with colors |
return_list |
Whether to return the values as a list (TRUE, default) or a named vector (FALSE). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.