# NOT RUN {
#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")
}
# }
Run the code above in your browser using DataLab