alpha

0th

Percentile

Modify colour transparency. Vectorised in both colour and alpha.

Modify colour transparency. Vectorised in both colour and alpha.

Usage
alpha(colour, alpha = NA)
Arguments
colour
colour
alpha
new alpha level in [0,1]. If alpha is NA, existing alpha values are preserved.
Aliases
  • alpha
Examples
library(scales) alpha("red", 0.1) alpha(colours(), 0.5) alpha("red", seq(0, 1, length.out = 10))
Documentation reproduced from package scales, version 0.4.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.