Description Usage Arguments Value
View source: R/colorpatch_impl.R
Finds a uniform color sequence within a non-uniform palette by subsampling that palette
1 2 | FindUniformSequence(P, n.out, reverse = FALSE, delta = NULL,
col.dist.fun = DistColorFun("LAB"))
|
P |
input color palette (must be a class derived from colorspace::color) |
n.out |
number of output colors (must be less than length(P)) |
reverse |
shall the searching be performed from the end of the palette to the beginning |
delta |
the perceptual difference to be achieved between two adjecent colors |
col.dist.fun |
function mapping two colors to a numeric distance |
a optimized palette (sub-set of P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.