desat: Desaturate colors

Description Usage Arguments Details Value

View source: R/desat.R

Description

Function for desaturating colors by specified proportion. Reference: https://stackoverflow.com/questions/26314701/r-reducing-colour-saturation-of-a-colour-palette

Usage

1
desat(cols, sat = 0.5)

Arguments

cols

a vector of colors

sat

saturation level

Details

See the colorspace library for examples of hsv() colorspace manipulations and RColorBrewer library for some example colors

Value

A list of desaturated colors.


UW-Upwelling-Project/imageryML documentation built on Dec. 18, 2021, 6:11 p.m.