View source: R/utilities-figures.R
col2hsv | R Documentation |
Returns the HSV values for a given R color name
col2hsv(color)
color |
vector of any of the three kinds of R color specifications,
i.e., either a color name (as listed by colors()), a hexadecimal string of
the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer |
A matrix with a column for each color. The three rows of the matrix indicate hue, saturation and value and are named "h", "s", and "v" accordingly.
col2hsv("yellow")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.