distinct_colors {chameleon} | R Documentation |
Pick a number of distinct colors.
Description
This ensures all colors are distinct by packing the (visible part) of the CIELAB color space with the needed number of spheres, and using their centers to generate the colors.
Usage
distinct_colors(
n,
minimal_saturation = 33,
minimal_lightness = 20,
maximal_lightness = 80
)
Arguments
n |
The requested (positive) number of colors. |
minimal_saturation |
Exclude colors whose saturation ( |
minimal_lightness |
Exclude colors whose lightnes ( |
maximal_lightness |
Exclude colors whose lightnes ( |
Value
A list with two elements, name
containing the color names and lab
containing a matrix with a row per color and three columns containing the l
,
a
and b
coordinates of each color.
Examples
chameleon::distinct_colors(8)
[Package chameleon version 0.2-3 Index]