View source: R/color-palettes-and-spectra.R
color_vector | R Documentation |
Returns a vector of color codes of the respective palette
color_vector(clrp, names = NULL, clrp.adjust = NULL, n.colors = NA)
clrp |
Character value. Denotes the color palette of interest. Run |
names |
Character vector or NULL. Assigns names to the color vector (in the same order). |
clrp.adjust |
Named character vector or NULL. If character, it adjusts the colors that are used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
n.colors |
Numeric value. Must be specified if |
Character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.