Add alpha for a Rcolor

add_alpha(color, alpha = 0.3)

Arguments

color

Rcolor

alpha

alpha, default 0.3

Value

8 hex color

Examples

add_alpha("red", 0.3)
#> [1] "#FF00004d"