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
2
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@tu-dresden.de> [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")

greenbrown documentation built on Dec. 18, 2020, 3:02 p.m.

Related to Col2 in greenbrown...