View source: R/colorfunctions.R
col.alpha | R Documentation |
Add and set alpha channel
col.alpha(col, alpha = 1)
col |
a vector of RGB color(s) |
alpha |
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
Claus Ekstrom claus@rprimer.dk
Ekstrom, CT (2011) The R Primer.
newcol <- col.alpha("blue", .5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.