change_alpha | R Documentation |
change (or add) alpha to colors
change_alpha(col, alpha)
col |
color or vector of colors |
alpha |
value to add or change. on [0, 1]. |
rgb colors or vector of rgbcolors with alpha
# numeric
change_alpha(1, .5)
# rgb
change_alpha(rgb(1, 0, 1), .5)
change_alpha("#ff00ff", .5)
# multiple
change_alpha(1:3, alpha = 0.5)
change_alpha(1:3, alpha = c(0.1, 0.2, 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.