| parse_color | R Documentation |
Parse colors specified in a given model
parse_color(x, model)
x |
a matrix or data.frame whose columns specify the color channels or a vector of color definitions for the |
model |
string defining the color model; valid models are |
A vector of colors specified as hex codes
convert_color to convert parsed colors to another model.
Other color specifications:
cmyk(),
css(),
hcl(),
hex(),
hsi(),
hsl(),
hsv(),
lab(),
rgb(),
ryb(),
temperature(),
wavelength()
parse_color(data.frame(h=c(0, 120, 240), s=0.5, v=0.7), model="hsv")
parse_color(data.frame(r=c(255, 0, 0),
g=c(0, 255, 0),
b=c(0, 0, 255)), model="rgb")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.