df_to_numcolors: Convert data.frame to numeric color substitution

df_to_numcolorsR Documentation

Convert data.frame to numeric color substitution

Description

Convert data.frame to numeric color substitution

Usage

df_to_numcolors(
  df,
  colramp = c("Reds"),
  colramp_divergent = c("RdBu_r"),
  trimRamp = c(1, 2),
  ...
)

Arguments

df

data.frame where columns with numeric values will be colorized.

colramp, colramp_divergent

character name of color ramp for linear and divergent color gradients, respectively.

trimRamp

integer vector length=2, passed to jamba::getColorRamp(), to trim the edge colors from a linear color gradient, thus avoiding extreme colors.

...

additional arguments are ignored.

See Also

Other jam color functions: assign_numeric_colors(), design2colors(), mean_hue(), print_color_list(), quick_complement_color()


jmw86069/platjam documentation built on Sept. 26, 2024, 3:31 p.m.