col2hex | R Documentation |
Convert R color string and output the color as hex
col2hex(xx, transval = NULL)
xx |
The R color string to convert |
transval |
transparency (alpha) value, as 2-character hex string. |
A hex string representing the color and transparency
col2hex("red", "2F")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.