paletteDiscrete: Optimized discrete color palette generation

View source: R/ColorPalettes.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 ArchRPalettes list object.

reverse

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


haibol2016/ArchR_debug documentation built on June 15, 2022, 5:42 p.m.