View source: R/make_transparent.R
make_transparent | R Documentation |
Add a transparency factor to each color in a vector of color names, using alpha on a scale of 0-255. Adapted from http://stackoverflow.com/questions/8047668/transparent-equivalent-of-given-color.
make_transparent(color_names, alpha = 100)
color_names |
vector of color names to be modified. |
alpha |
numeric, the alpha value, between 0 (completely transparent) and 255 (the original color). Passed to |
a character vector of the same length as color_names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.