dimColor: Dim a given color to a specified density

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dimColor.R

Description

This function calls first col2rgb on a color name and then uses rgb to adjust the intensity of the result.

Usage

1

Arguments

col

Color name or number passed to col2rgb.

density

Integer value passed as alpha coefficient to rgb between 0 and 255

Value

A character vector with the color code. See rgb for details.

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

See Also

rgb col2rgb

Examples

1
2
dimColor(2,33)
dimColor("green",133)

prodlim documentation built on Nov. 17, 2019, 5:06 p.m.

Related to dimColor in prodlim...