col2hex | R Documentation |
converts a valid r color name ("black", "red", "white", etc.) to a hex value
col2hex(color_name)
color_name |
character. one or more r color names. |
hex value of colors coded by colors()
col2hex(c("red", "green", "blue"))
col2hex(c("lightgray", "gray", "darkgray"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.