use_color_pal | R Documentation |
Applies a palette to a data vector to yield a vector of colors.
use_color_pal(data_values, pal, color_NA = "white", indices = FALSE)
data_values |
The values to map to colors |
pal |
The palette to use to map values to colors |
color_NA |
The color to use for |
indices |
Return the numeric indices of colors in |
A character vector of color names (or integers if indices
).
Other coloring:
ROY_BIG_BL()
,
expand_color_pal()
,
make_color_pal()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.