add_alphas | R Documentation |
adds (or replaces existing) alpha values (from 0 to 1) to RGB string colors; extended to vectors from http://www.magesblog.com/2013/04/how-to-change-alpha-value-of-colours-in.html
add_alphas(col, alpha = rep(1, length(col)))
col |
a string vector of RGB color specifiers with ("#FF0000AA ") or without ("#FF0000") existing alpha values |
alpha |
a numeric vector of equal length as argument |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.