col2hex | R Documentation |
col2hex()
standardizes R color strings
into a unique RGBA hex string.
All fully transparent colors get standardized
to "#FFFFFF00"
.
col2hex(x)
x |
Color value as supported by |
A standardized RGBA hex string (as returned by grDevices::rgb()
).
col2hex("red")
col2hex("green")
col2hex("blue")
col2hex("transparent")
col2hex(NA_character_)
col2hex("#00000000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.