Col2 {ModelDataComp} | R Documentation |
The function adds transparency to a vector of colours
Col2(col, alpha = 0.3, ...)
col |
character string of the colour |
alpha |
transparence (0 = transparent, 1 = opaque) |
... |
further arguments (unused) |
The function adds transparency to a vector of colours
returns a colour including transparency
Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]
cols <- Col2(c("red", "blue"), alpha=seq(0, 1, 0.1)) plot.new() legend("top", cols, fill=cols, bg="yellow")