powered by
A helper function for making colors transparent.
colors
transparent_colors(colors, percent = 50)
A vector of colors of the same length as colors.
A vector of color numbers or names.
Required color transparency, in the range [0:100].
[0:100]
Requires installed package "grDevices".
transparent_colors(c("red", "green", "blue"), 50) # c("#FF00007F", "#00FF007F", "#0000FF7F")
Run the code above in your browser using DataLab