colwalpha {broman} | R Documentation |
Convert a color to use alpha transparency
Description
Convert a color to RGB and then to RGB with alpha transparency
Usage
colwalpha(color, alpha = 1)
Arguments
color |
A character string for a color |
alpha |
Traparency value (between 0 and 1) |
Value
A character string representing a color
Examples
colwalpha(c("blue", "red"), 0.5)
[Package broman version 0.84 Index]