View source: R/distinctColorPalette.R
distinctColorPalette | R Documentation |
distinctColorPalette
generates an attractive palette of random colors.
distinctColorPalette(count = 1, seed = NULL, darken = 0)
count |
Integer, number of colors (>= 1). May be ineffective for count > 40. |
seed |
Integer, seed number to produce repeatable palettes. |
darken |
Numeric specifying the amount of darkening applied to the color palette. See colorspace::darken. Negative values will lighten the palette. |
Adapted from the randomcoloR package https://cran.r-project.org/package=randomcoloR.
distinctColorPalette
returns a character vector of count
optimally distinct colors in hexadecimal codes.
distinctColorPalette()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.