transp: Adds transparency to a vector of colors

View source: R/miscellanous.R

transpR Documentation

Adds transparency to a vector of colors

Description

Adds transparency to a vector of colors

Usage

transp(col, alpha = 0.5)

Arguments

col

a vector of colors

alpha

(default 0.5) a numeric value between 0 and 1 representing the alpha coefficient; 0: total transparency; 1: no transparency.

Value

a color vector

Author(s)

Thibaut Jombart in adegenet package

See Also

The R package RColorBrewer, proposing a nice selection of color palettes. The viridis package, with many excellent palettes


MiscMetabar documentation built on Oct. 8, 2024, 1:07 a.m.