powered by
Add and set alpha channel
col.alpha(col, alpha = 1)
a vector of RGB color(s)
numeric value between 0 and 1. Zero results fully transparent and 1 means full opacity
This function adds and set an alpha channel to a RGB color
Ekstrom, CT (2011) The R Primer.
# NOT RUN { newcol <- col.alpha("blue", .5) # }
Run the code above in your browser using DataLab