add_alpha: Makes Color(s) Transparent

Usage Arguments Value See Also Examples

Usage

1
add_alpha(color, alpha = 1)

Arguments

color

Color vector: vector of any of the three kinds of R color specifications, i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer i meaning palette()[i].

alpha

Numeric: amount of transparency in '[0, 1]'

Value

A character vector of HEX colors of same length as color

See Also

scale_alpha

Examples

1
add_alpha(c('red', 'blue'), alpha = 0.5)

statech/CommonPlots documentation built on May 6, 2019, 1:32 a.m.