Description Usage Arguments Value Examples
Create a Palette generating function
1 | colormap_pal(alpha = 1, colormap = colormaps$viridis, reverse = FALSE)
|
alpha |
pass through parameter to |
colormap |
pass through parameter to |
reverse |
pass through parameter to |
A function that can generate colors from a specified colormap.
1 2 | scales::show_col(colormap_pal()(10))
scales::show_col(colormap_pal(colormap=colormaps$viridis)(100), labels=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.