Three different generation methods are wrapped, including
distinctColors,
[randomcoloR](SCTK_PerformingQC_Cell_V3.Rmd) and the ggplot
default color generation.
discreteColorPalette(
n,
palette = c("random", "ggplot", "celda"),
seed = 12345,
...
)An integer, the number of color codes to generate.
A single character string. Select the method, available
options are "ggplot", "celda" and "random". Default
"random".
An integer. Set the seed for random process that happens only in
"random" generation. Default 12345.
Other arguments that are passed to the internal function, according to the method selected.
A character vector of n hex color codes.
discreteColorPalette(n = 3)
#> [1] "#AEDD7D" "#BBBFBF" "#C26DCB"