Description Usage Arguments Value Examples
View source: R/colorpatch_impl.R
Optimizes a bicolor palette
1 2 3 4 5 6 | OptimizeBiColor(neg.col.min = colorspace::sRGB(0, 0.01, 0),
neg.col.max = colorspace::sRGB(0, 1, 0),
pos.col.min = colorspace::sRGB(0.01, 0, 0),
pos.col.max = colorspace::sRGB(1, 0, 0), center.col = colorspace::sRGB(0,
0, 0), n.out = 64, oversampling = 128,
col.dist.fun = DistColorFun("LAB"), reverse = FALSE)
|
neg.col.min |
color representing the negative mininum value |
neg.col.max |
color representing the negative maximum value |
pos.col.min |
color for the positive minimum value |
pos.col.max |
color representing the positive maximum value |
center.col |
center color which maps to 0 (default: black) |
n.out |
size of each half-palette |
oversampling |
the oversampling rate |
col.dist.fun |
color distance function (default: DistColorFun("LAB")) for optimizing the palette |
reverse |
shall the palette be searched starting from the minimum color to the maximum
( |
bicolor palette
1 2 | pal <- OptimizeBiColor(n.out = 8, oversampling = 32)
PlotUniformity(pal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.