col_fade: col_fade

Description Usage Arguments See Also Examples

Description

Make a color transparent, simple call to rgb()

Usage

1
col_fade(color, alpha)

Arguments

color

either a string of a valid R color name or a vector of length 3 of RGB values in [0, 1]^3

alpha

the degree of transparency, 0 is invisible and 1 is no transparency

See Also

col_dens, col_mult, col_gray

Examples

1
2
col_fade("lightgreen", 0.5)
col_fade(c(0.564, 0.933, 0.564), 0.5)

mickwar/mwBASE documentation built on May 22, 2019, 9:56 p.m.