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.

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.