highlightCol | R Documentation |
An alpha transparency value can be specified to a color, in order to get better color for background.
highlightCol(col, alpha = 0.5)
col |
vector of any of the three kinds of R color specifications, i.e., either a color name (as listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa" (see rgb), or a positive integer i meaning palette()[i]. |
alpha |
a value in [0, 1] |
a vector of colors in hexadecimal string of the form "#rrggbbaa".
Jianhong Ou
highlightCol(1:5, 0.3)
highlightCol(c("red", "green", "blue"), 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.