scales (version 0.4.0)

col2hcl: Modify standard R colour in hcl colour space.

Description

Transforms rgb to hcl, sets non-missing arguments and then backtransforms to rgb.

Usage

col2hcl(colour, h, c, l, alpha = 1)

Arguments

colour
character vector of colours to be modified
h
new hue
c
new chroma
l
new luminance
alpha
alpha value. Defaults to 1.

Examples

Run this code
col2hcl(colors())

Run the code above in your browser using DataCamp Workspace