in_hex | R Documentation |
Convert colors, including named ones as defined in the function colors
, into their hex representation. This function is mostly used internally by chroma.
in_hex(x)
x |
vector of colors specified as hex strings or named R colors. |
A vector of colors specified as hex codes
hex
for the same functionality offered in a more standard and more versatile way (albeit slower).
in_hex("pink") in_hex(c("pink", "#348A31", "darkblue")) in_hex(c("pink", NA)) show_col(in_hex(colors()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.