helper_palette {whomds}R Documentation

Color palette for the MDS

Description

Color palette for the MDS

Usage

helper_palette(
  n,
  h = c(-100, 100),
  c. = c(60, 100),
  l = c(15, 95),
  power = c(2, 0.9),
  fixup = TRUE,
  gamma = NULL,
  alpha = 1,
  ...
)

Arguments

n

the number of colors (\ge 1) to be in the palette.

h

hue value in the HCL or HSV color description, has to be in [0, 360] for HCL and in [0, 1] for HSV colors.

c.

chroma value in the HCL color description.

l

luminance value in the HCL color description.

power

control parameter determining how chroma and luminance should be increased (1 = linear, 2 = quadratic, etc.).

fixup

logical. Should the color be corrected to a valid RGB value before correction?

gamma

Deprecated.

alpha

numeric vector of values in the range [0, 1] for alpha transparency channel (0 means transparent and 1 means opaque).

...

Other arguments passed to hex.

Details

Generated with colorspace::choose_palette()

Value

n hex codes from the color palette

See Also

Other helper functions: helper_checkrow(), helper_varslist()


[Package whomds version 1.1.1 Index]