paletteDiscrete: Optimized discrete color palette generation

View source: R/generics.R

paletteDiscreteR Documentation

Optimized discrete color palette generation

Description

This function assesses the number of inputs and returns a discrete color palette that is tailored to provide the most possible color contrast from the designated color set.

Usage

paletteDiscrete(values = NULL, set = "stallion", reverse = FALSE)

Arguments

values

A character vector containing the sample names that will be used. Each entry in this character vector will be given a unique color from the designated palette set.

set

The name of a color palette provided in the 'bindSCPalettes' list object.

reverse

A boolean variable that indicates whether to return the palette colors in reverse order.


KChen-lab/bindSC documentation built on Sept. 29, 2022, 4:24 a.m.