Col2 {ModelDataComp}R Documentation

Adds transparency to a colour

Description

The function adds transparency to a vector of colours

Usage

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

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

[Package ModelDataComp version 1.03 Index]