Adds transparency to a vector of colors
See also
The R package RColorBrewer, proposing a nice selection of color palettes. The viridis package, with many excellent palettes
Examples
transp("red")
#> [1] "#FF000080"
transp(c("red", "blue"), alpha = 0.3)
#> [1] "#FF00004D" "#0000FF4D"