View source: R/makeTransparent.R
makeTransparent | R Documentation |
Add transparency to the selected colours.
makeTransparent(colour, alpha)
colour |
A R colour |
alpha |
A value between 0 and 1 that defines the transparency 0 for full transparency and 1 for no transparency |
Return a colour with the provided level of transparency.
makeTransparent('black',0.5)
makeTransparent('black',1:10/10)
makeTransparent(rainbow(10), 1:10/10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.