makeColorsUnique: Make a vector of unique colors

View source: R/human_functions_rename.r

makeColorsUniqueR Documentation

Make a vector of unique colors

Description

This function converts any vector of colors to a new vector where each element is unique but the elements overall are as close as possible to the original elements.

Usage

makeColorsUnique(colorVector, seed = 1)

Arguments

colorVector

a vector of colors (in a format compatable with col2rgb)

seed

random seem for reproducibility

Value

a color vector very close to the initial colorVector, but where all color values are unique


AllenInstitute/scrattch.hicat documentation built on Oct. 20, 2023, 6:55 a.m.