Modify standard R colour in hcl colour space.
Transforms rgb to hcl, sets non-missing arguments and then backtransforms to rgb.
col2hcl(colour, h = NULL, c = NULL, l = NULL, alpha = NULL)
colour |
character vector of colours to be modified |
h |
Hue, |
c |
Chroma, |
l |
Luminance, |
alpha |
Alpha, |
reds <- rep("red", 6) show_col(col2hcl(reds, h = seq(0, 180, length = 6))) show_col(col2hcl(reds, c = seq(0, 80, length = 6))) show_col(col2hcl(reds, l = seq(0, 100, length = 6))) show_col(col2hcl(reds, alpha = seq(0, 1, length = 6)))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.