col2hex | R Documentation |
Convert color names to hex RGB strings
col2hex(cname)
cname |
Color name(s) |
Character vector giving the hex color code translation of the provided color names.
Gregory R. Warnes
col2rgb
, colors
, rgb
col2hex(c("red","yellow","lightgrey"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.