get_HCL_colors: Get HCL colors based on triples.

View source: R/get_HCL.R

get_HCL_colorsR Documentation

Get HCL colors based on triples.

Description

Derive colors from the HCL color space based on triples of values. The H and C are

Usage

get_HCL_colors(m, H1 = 0, L.lim = c(80, 20), L.delta = 0.65,
  L.w = 10, zf = 0, C.max = 100, transparent = FALSE,
  H.method = c("cat", "div", "seq"), H.div = c(240, 20),
  L.method = c("v1", "v2"), C.method = c("triangle", "entropy"),
  palette = NA, output = c("colors", "hcl", "rgb"))

Arguments

m

matrix of counts, rows are the cases, columns are the groups. Number of columns should be at most three.

H1

hue value of first subpopulation

L.lim

limits of the luminance, corresponds to pop.lim

L.delta

L.delta

L.w

L.w

zf

zf

C.max

maximum chroma

transparent

should the background be transparent? If FALSE, it will be white.

H.method

H.method

H.div

H.div

L.method

L.method

C.method

C.method

palette

palette

output

a subset of: "colors", which outputs the color codes, "hcl", which outputs the H, C and L parameters, and "rgb", which outputs the red, green and blue values.

Value

a vector if output == "colors", matrix if output == "hcl" or output == "rgb", and a data.frame otherwise.


mtennekes/dotmap documentation built on Aug. 24, 2023, 3:40 a.m.