Learn R Programming

scales (version 0.1.0)

alpha: Modify colour transparency. Vectorised in both colour and alpha.

Description

Modify colour transparency. Vectorised in both colour and alpha.

Usage

alpha(colour, alpha)

Arguments

colour
colour
alpha
new alpha level in [0,1]

Examples

Run this code
alpha("red", 0.1)
alpha(colours(), 0.5)
alpha("red", seq(0, 1, length = 10))

Run the code above in your browser using DataLab