Col2Hex | R Documentation |
Convert R colour to hexadecimal representation.
Col2Hex(col, alpha = FALSE)
col |
vector of any of the three kinds of R color specifications,
i.e., either a color name (as listed by |
alpha |
logical value indicating whether the alpha channel (opacity) values should be returned. |
Martin R. Smith (martin.smith@durham.ac.uk)
Col2Hex(1:3)
Col2Hex(c("peachpuff", "blue"), TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.