add alpha level to color that lacks one
AddAlpha(plotclr, alpha = 0.5, verbose = 0)
plotclr
alpha
verbose
modified color with alpha value
Markus Loecher
#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") }