col2hex.RdConverts named colors to hex (html) codes.
col2hex(color, alpha = NULL)
| color | One or more named colors. Also accepts hex colors (useful for adding alpha values). |
|---|---|
| alpha | Alpha level ranging form 1.0 (opaque) to 0.0 (transparent). The default (NULL) omits alpha columns from the returned hexadecimal characters. |
Hexadecimal color codes