Col2: Adds transparency to a colour

Description Usage Arguments Details Value Author(s) Examples

Description

The function adds transparency to a vector of colours

Usage

1
Col2(col, alpha = 0.3, ...)

Arguments

col

character string of the colour

alpha

transparence (0 = transparent, 1 = opaque)

...

further arguments (unused)

Details

The function adds transparency to a vector of colours

Value

returns a colour including transparency

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

Examples

1
2
3
cols <- Col2(c("red", "blue"), alpha=seq(0, 1, 0.1))
plot.new()
legend("top", cols, fill=cols, bg="yellow")

ModelDataComp documentation built on Nov. 22, 2020, 3 a.m.