colormap_pal: Create a Palette generating function

Description Usage Arguments Value Examples

Description

Create a Palette generating function

Usage

1
colormap_pal(alpha = 1, colormap = colormaps$viridis, reverse = FALSE)

Arguments

alpha

pass through parameter to colormap

colormap

pass through parameter to colormap

reverse

pass through parameter to colormap

Value

A function that can generate colors from a specified colormap.

Examples

1
2
scales::show_col(colormap_pal()(10))
scales::show_col(colormap_pal(colormap=colormaps$viridis)(100), labels=FALSE)


Search within the colormap package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.