color_to_hex | R Documentation |
Get the hex code for a color given by its name.
color_to_hex(x, alpha = FALSE)
x |
Color name as string. |
alpha |
logical value indicating whether the alpha channel (opacity) values should be returned. |
Vector of length 1 or greater of hex codes matched to the RGB derived from the color name.
col2rgb
,rgb
color_to_hex("blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.