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.


ehrlichd/moRphomenses documentation built on March 10, 2024, 3:06 a.m.