transparent_colors: transparent_colors

View source: R/DexiCharts.R

transparent_colorsR Documentation

transparent_colors

Description

A helper function for making colors transparent.

Usage

transparent_colors(colors, percent = 50)

Arguments

colors

A vector of color numbers or names.

percent

Required color transparency, in the range ⁠[0:100]⁠.

Details

Requires installed package "grDevices".

Value

A vector of colors of the same length as colors.

Examples

transparent_colors(c("red", "green", "blue"), 50)
# c("#FF00007F", "#00FF007F", "#0000FF7F")

DEXiR documentation built on Sept. 30, 2024, 9:39 a.m.