add.alpha | R Documentation |
A function to add alpha levels to RGB colors.
add.alpha(col, alpha = 0.65)
col |
color from colors() |
alpha |
alpha level (between 0 and 1) |
This code was created by Markus Gesmann. Derek Beaton included the code in prettyGraphs because it is a versatile function and used in prettyGraphs. See: https://magesblog.com/post/2013-04-30-how-to-change-alpha-value-of-colours-in/
Markus Gesmann
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.