Description Usage Arguments Value Author(s) Examples
add alpha level to color that lacks one
1 | AddAlpha(plotclr, alpha = 0.5, verbose = 0)
|
plotclr |
color to be modified |
alpha |
alpha level |
verbose |
level of verbosity |
modified color with alpha value
Markus Loecher
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #example:
#require(RColorBrewer)
if (requireNamespace("RColorBrewer", quietly = TRUE)) {
plotclr <- RColorBrewer::brewer.pal(8,"YlOrRd")
plotclr = AddAlpha(plotclr,0.5)
} else {
print("package RColorBrewer must be installed for this example")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.