Description Usage Arguments Value Examples
View source: R/colorpatch_impl.R
Creates a color mapping function
1 | ColorRgbFun(pal, xmin = -1, xmax = 1, coerce.fun = colorspace::hex)
|
pal |
the color palette |
xmin |
minimum value to be mapped to the first entry of the palette |
xmax |
maximum value to be mapped to the last entry of the palette |
coerce.fun |
the color coercing function (e.g. for ggplot2 |
a function mapping a value to a color
1 2 | data("OptimGreenRedLAB")
fn <- ColorRgbFun(OptimGreenRedLAB)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.