addalpha | R Documentation |
This function accepts a vector of colours and adds a given alpha to make them transparent.
addalpha(x, alpha = 1)
x |
A vector of colours (names, hex, etc) |
alpha |
The required alpha. 0 is fully transparent, 1 is fully opaque. |
A vector of colours of the same length as x, with transparency added.
addalpha(c("red", "green", "blue"), 0.3)
addalpha(rainbow(8), 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.