add_transparency: Add transparency to colors

add_transparencyR Documentation

Add transparency to colors

Description

Add transparency to colors

Usage

add_transparency(col, transparency = 0)

Arguments

col

A vector of colors.

transparency

Transparency, numeric value between 0 and 1.

Value

A vector of colors.

Examples

add_transparency("red", 0.5)
add_transparency(1, 0.5)
add_transparency("#FF000080", 0.2)

colorRamp2 documentation built on Dec. 21, 2022, 5:22 p.m.