mm_mute_cols: Take a color and modify it

View source: R/helper_functions.R

mm_mute_colsR Documentation

Take a color and modify it

Description

Modify color/transparency using hsv syntax

Usage

mm_mute_cols(cols, s = NULL, v = NULL, alpha = 0.4)

Arguments

cols

a vector of colors, eg: "#0066FF"

s

Either a single value or a vector of same length as cols specifying a new saturation (range 0-1). colors darken to black (0).

v

Either a single value or a vector of same length as cols specifying a new value (range 0-1). colors lighten to white (0)

alpha

Either a single value or a vector of same length as cols specifying a transparency value (range 0-1). colors translucent at 0.

Value

A vector of colors that have been modified in saturation, value, or alpha


ehrlichd/moRphomenses documentation built on Dec. 13, 2024, 8:36 a.m.