Adds transparency to a vector of colors
Arguments
- col
a vector of colors
- alpha
(default 0.5) a numeric value between 0 and 1 representing the alpha coefficient; 0: total transparency; 1: no transparency.
See also
The R package RColorBrewer, proposing a nice selection of color palettes. The viridis package, with many excellent palettes
Author
Thibaut Jombart in adegenet
package