Description Usage Arguments Value Author(s) References See Also Examples
View source: R/aveytoolkit_makeTransparent.R
Simple function to make some colors transparent
1 | makeTransparent(alpha = 0.5, ...)
|
alpha |
transparency factor in range [0,1] |
... |
vector or list of colors |
a vector of new colors made transparent
Ricardo Oliveros-Ramos
http://stackoverflow.com/questions/8047668/transparent-equivalent-of-given-color
1 2 3 4 | makeTransparent("red", "blue")
##[1] "#FF00007F" "#0000FF7F"
makeTransparent("red", "blue", alpha=0.8)
## [1] "#FF0000CC" "#0000FFCC"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.