desaturate_ltc: Desaturate Palette Colors

View source: R/adjust_palette.R

desaturate_ltcR Documentation

Desaturate Palette Colors

Description

Reduce color saturation (make colors more gray).

Usage

desaturate_ltc(palette_name, amount = 0.5, which = NULL)

Arguments

palette_name

Character or unquoted name. Name of the ltc palette.

amount

Numeric. Desaturation amount (0 to 1). 0 = no change, 1 = completely gray.

which

Integer vector. Which colors to desaturate. If NULL (default), affects all colors.

Value

A vector of desaturated hex color codes with class "ltc"

Examples


# Desaturate entire palette
desaturate_ltc(luminaries, amount = 0.5)

# Desaturate only specific colors
desaturate_ltc("heatmap2", amount = 0.7, which = c(1, 2))


ltc documentation built on Jan. 16, 2026, 5:15 p.m.

Related to desaturate_ltc in ltc...