colorPalette | R Documentation |
This function creates a random color palette, or allows the user to select a pre-implemented palette.
colorPalette(
name,
n = NULL
)
name |
name of the color palette. Can be |
n |
the number of colors to select from the palette. Required if |
The following color palettes are implemented:
A vector of colors.
Koen Derks, koen-derks@hotmail.com
colorPalette("divergent", 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.