Description Usage Arguments Details Value See Also Examples
Convert color to hex
1 | col2hex(color, alpha = 1)
|
color |
Character string. An R color or color as hex. |
alpha |
Transparency. A value from 0 to 1 (default). |
This function is primarily to be used on R colors, and will convert them to hexmode sufficient for typical use in visualization, web presentation, etc. If you already have a hex value, it can be useful for tacking on the alpha level.
A character string of a hexadecimal color
as.hexmode colors col2rgb rgb
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.