paletteDiscrete.Rd
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)
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.
The name of a color palette provided in the ArchRPalettes
list object.
A boolean variable that indicates whether to return the palette colors in reverse order.
# Vector
v <- c("A", "B")
# Color Palette
pal <- paletteDiscrete(values = v)