Description Usage Arguments Details See Also Examples
Friendly way to change the transparency of a color of vector of colors that are specified by name.
1 |
col |
a color, specified as in |
alpha |
numeric vector w/ value(s) between 0 (transparent) and 1 (opaque) |
Pretty sure I got the code (or inspiration) here. This function is simple (the code is just 1 line), but it is quick and convenient.
See rgb
, colors
, colorRampPalette
, adjustcolor
for base functions handling colors. See rbLib-package
for package overview.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.