Description Usage Arguments Value
this function is originally from LSD but adapted a little (adding more colors). This function will return the color if nrcol is not specified; otherwise, color interperlation through grDevices::colorRampPalette will be used.
1 2 | colorpalette2colvec(pal = "brewer.comb", nrcol = NULL, alpha = NULL,
seed = NULL)
|
pal |
string specifying pallete (predefined) |
nrcol |
number of colors desired |
alpha |
alpha blending |
a vector of colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.