Convert color to transparent color

col2alpha(col, alpha = 0.5)

Arguments

col

Character, the color

alpha

Length 1 numeric, 0 to 1 (the transparency level)