powered by
Return transparent form of a named color.
transparent(col, percent = 50)
vector of colors as name, hexadecimal, or positive integer (see col2rgb).
col2rgb
percent of transparency (0 = solid, 100 = transparent).
Eric Archer eric.archer@noaa.gov
pct <- seq(0, 100, by = 10) plot(pct, pct, bg = transparent("red", pct), pch = 21, cex = 4, xlab = "X", ylab = "Y")
Run the code above in your browser using DataLab