lighten: gives a lighter shade of a color

View source: R/PrettyBarPlot2.R

lightenR Documentation

gives a lighter shade of a color

Description

lighten gives a lighter shade of a color.

Usage

lighten(colors, factor = 1.4, maxColorValue = 255)

Arguments

colors

a vector of color names.

factor

(Default: 1.4) the lightening factor.

maxColorValue

(Default: 255) the maximum possible for a color component.

Details

Credit to Roland, see: https://stackoverflow.com/questions/30219738/is-there-a-way-to-programmatically-darken-the-color-given-rgb-values

Value

A lightened color.

Examples

lighten(c('#FF0000FC','#E6E6FAFC'), 1.3)

HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.