lighten_color: Lighten a Color

View source: R/lighten_color.R

lighten_colorR Documentation

Lighten a Color

Description

This function lightens a given color by a specified factor.

Usage

lighten_color(color, factor)

Arguments

color

A character string representing a color in any valid format (e.g., hex code, color name).

factor

A numeric value between 0 and 1 indicating the amount to lighten the color. A factor of 0 means no change, while a factor of 1 results in white.

Value

A character string representing the lightened color in RGB format.


ggtaxplot documentation built on April 4, 2025, 4:39 a.m.