add.alpha: Add transparency to a color

Description Usage Arguments Value See Also Examples

Description

Add transparency to a color

Usage

1
add.alpha(col, alpha = 1)

Arguments

col

A color.

alpha

The level of transparency.

Value

The transparent color.

See Also

rgb, colors

Examples

1
2
3
4
5
6
color1 <- add.alpha(col = "red", alpha = 0.6)

color2 <- add.alpha(colors()[115], 0.5)
x <- rnorm(1000, mean = 1, sd = 0.5)
y <- rnorm(1000, mean = 1, sd = 0.5)
plot(x,y, col = c(color1, color2), pch = 16)

marionbetizeau/CerebellumAstrocyteSimulation documentation built on May 14, 2019, 7:20 p.m.