col2rgbt: Converts an R color to RGB (red/green/blue) including a transparency (alpha channel).
Description
Converts an R color to RGB (red/green/blue) including a transparency (alpha channel). Similar to col2rgb except that a transparncy (alpha channel) can be included.
Usage
col2rgbt(col, transp = 1)
Arguments
col
A vector of any of the three kinds of R color specifications (i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see
transp
A numeric vector that indicates the transparency level for the color. The transpaency values must be greater than 0. Transparency values greater than 1 are interpreted as the number of points plotted on top of each other before the transparency is lost
Value
A vector of hexadecimal strings of the form "#rrggbbaa" as would be returned by rgb.