add_colorjam_step: Add colorjam chroma/luminance step

add_colorjam_stepR Documentation

Add colorjam chroma/luminance step

Description

Add colorjam chroma/luminance steps to adjust a series of color hues to visibly distinct categorical colors.

Usage

add_colorjam_step(step, step_list, verbose = TRUE, ...)

Arguments

step

character string with the step name.

step_list

list with elements "C" and "L" which each contain a numeric vector with values in the range c(0, 100). In future the step_list may permit other color channels, such as "S" and "L" for use with HSL color space, or "S" and "V" for use with HSV color space.

...

additional arguments are ignored.

Value

TRUE, invisibly.

See Also

Other colorjam hue warp: add_colorjam_preset(), adjust_hue_warp(), approx_degrees(), colorjam_presets(), colorjam_steps(), display_degrees(), h2hw(), h2hwOptions(), hcl_to_hsl_hue(), hsl_to_hcl_hue(), hw2h(), mean_angle(), plot_colorjam_preset(), remap_colorjam_preset(), validate_colorjam_preset()

Examples

colorjam_steps()
colorjam_steps("v24")

Cvals <- c(110, 88, 99,  80, 105, 97)
Lvals <- c(51, 82, 70, 60, 77, 65)
add_colorjam_step("new_v24", step_list=list(C=Cvals, L=Lvals))
colorjam_steps()
colorjam_steps("new_v24")

color_pie(rainbowJam(n=10,
   step="new_v24",
   phase=c(2,1,3,4,5,6)))

add_colorjam_step("new_v24", step_list=NULL)
colorjam_steps()


jmw86069/colorjam documentation built on Dec. 16, 2024, 8:02 a.m.