colormap_pal {colormap} | R Documentation |
Create a Palette generating function
Description
Create a Palette generating function
Usage
colormap_pal(alpha = 1, colormap = colormaps$viridis, reverse = FALSE)
Arguments
alpha |
pass through parameter to |
colormap |
pass through parameter to |
reverse |
pass through parameter to |
Value
A function that can generate colors from a specified colormap.
Examples
scales::show_col(colormap_pal()(10))
scales::show_col(colormap_pal(colormap=colormaps$viridis)(100), labels=FALSE)
[Package colormap version 0.1.4 Index]