Learn R Programming

paleoDiv (version 0.4.0)

add.alpha: Add transparency to any color

Description

Add transparency to any color

Usage

add.alpha(col, alpha = 0.5)

Value

A character vector containing color hex codes.

Arguments

col

Color value or vector of colors

alpha

Opacity value to apply to the color(s)

Examples

Run this code
add.alpha("red",0.8)

Run the code above in your browser using DataLab