colr {hacks}R Documentation

Create Transparent Colors

Description

Convert colors from the R color palette index to a hexidecimal string. This function is primarily used to add transparencies to the color palette.

Usage

colr(col.pal = 1, a = 1)

Arguments

col.pal An integer 'i' referring to the color palette index (typically 1-8).
a Numeric value in [0,1] that specifies the alpha channel.

Author(s)

Nathan Stephens

See Also

rgb, col2rgb

Examples

colr() # Black
colr(4,0.5) # Blue at half transparency

[Package hacks version 0.1-5 Index]