col2int | R Documentation |
col2int()
converts color strings to (native) color integers.
int2col()
converts (native) color integers to color strings.
col2int(x)
int2col(x)
x |
Color value to convert. |
Colors are also standardized by col2hex()
.
Requires the farver package.
col2int()
returns an integer. int2col()
returns a (hex) color string.
if (requireNamespace("farver", quietly = TRUE)) {
int2col(col2int("red"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.