Many standard palette generators use only a slice of color space, which can cause a lack of differentiability in palettes used to visualize categorical factors with many levels. This function attempts to overcome this by generating colors using nearest-neighbor distance maximization in 3D RGB space.
Arguments
- n
Number of colors (integer).
- res
Number of distinct values in each RGB dimension (integer).
- maxreps
Max number of optimization iterations (integer).
- radius
Neighborhood size for potential moves, analagous to heating.
- avoid_white
Logical, default is TRUE.
- seed
Integer used to seed randomization during search; leave as NULL to generate different results each time, or set a value to generate reproducible results.