clr_alpha | R Documentation |
Set alpha in color
clr_alpha(col, alpha = 0.5)
col |
A |
alpha |
Numeric between 0 and 1. 0 will result in full transparency and 1 in no transparency. |
A colors
object of the same length as col
.
plot(clr_alpha(rainbow(10), 0.5))
plot(clr_alpha(rainbow(10), 0.2))
plot(clr_alpha(rainbow(10), seq(0, 1, length.out = 10)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.