View source: R/all_custom_functions.R
mktransp | R Documentation |
The function can be used to make a color value transparent with varying degrees of transparency. It can also be applied to vectors of colors.
mktransp(color, alpha = 100)
color |
Vector of colors to be turned transparent. Color values can be supplied in various forms. |
alpha |
Level of transparency on a 0-255 scale. 255 refers to no transparency. |
The output is the transparent color(s) in hexadecimal notation.
plot(1:4, pch=19, col=mktransp(c('blue', 'red')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.