Description Usage Arguments Value Examples
View source: R/miscFunctions.R
Three different generation methods are wrapped, including
distinctColors
,
[randomcoloR](SCTK_PerformingQC_Cell_V3.Rmd) and the ggplot
default color generation.
1 2 3 4 5 6 | discreteColorPalette(
n,
palette = c("random", "ggplot", "celda"),
seed = 12345,
...
)
|
n |
An integer, the number of color codes to generate. |
palette |
A single character string. Select the method, available
options are |
seed |
An integer. Set the seed for random process that happens only in
"random" generation. Default |
... |
Other arguments that are passed to the internal function, according to the method selected. |
A character vector of n
hex color codes.
1 | discreteColorPalette(n = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.