col_to_rgb | R Documentation |
This is a faster replacement for grDevices::col2rgb()
which uses
a hash lookup of R color names (rather than a linear search).
col_to_rgb(col)
col |
Character vector of color names. Supports all R color names (e.g. "red", "hotpink") and hex colors of the form: "#RRGGBBAA", "#RRGGBB", "#RGBA" and "#RGB". |
An integer matrix with four rows and number of columns the length of the input.
col_to_rgb(c("hotpink", "#abc", "#abcd", "#aabb99", "#aabb9980"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.