powered by
This function calls first col2rgb on a color name and then uses rgb to adjust the intensity of the result.
col2rgb
rgb
dimColor(col, density = 55)
A character vector with the color code. See rgb for details.
Color name or number passed to col2rgb.
Integer value passed as alpha coefficient to rgb between 0 and 255
Thomas A. Gerds <tag@biostat.ku.dk>
rgb col2rgb
dimColor(2,33) dimColor("green",133)
Run the code above in your browser using DataLab