colr {hacks} | R Documentation |
Convert colors from the R color palette index to a hexidecimal string. This function is primarily used to add transparencies to the color palette.
colr(col.pal = 1, a = 1)
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. |
Nathan Stephens
colr() # Black colr(4,0.5) # Blue at half transparency