tcolor | R Documentation |
Makes a color represented by a word ("green") or hex code ("#4FFF33) transparent.
tcolor(color, alpha)
color |
A color (e.g., "green", "#4FFF33) |
alpha |
The transparency level (0-1; 0=invisible, 1=opaque) |
A color with transparency
# Plot using transparent red
plot(1:10, 1:10, col=tcolor("red", alpha=0.4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.