Skip to contents

Core colorjam functions

Most frequently used colorjam functions

blend_colors()
Blend multiple colors
closestRcolor() closest_named_color()
Find the closest R color
colors_to_df()
Convert colors to data.frame of color attributes
color_complement()
Create color complement by rotating the color hue
group2colors()
Assign colors to vector of group labels
rainbowJam()
rainbow categorical colors using varied luminance and chroma
sort_colors()
Sort a vector of colors using one or more color attributes
subset_colors()
Subset a vector of colors using one or more color attributes

Colorjam gradients

Functions to create and manipulate linear and divergent color gradients

col_div_xf()
Divergent color interpolation function with adjustable range and floor
col_linear_xf()
Linear color interpolation function with adjustable range, baseline, and floor
make_jam_divergent()
Make divergent color gradient
twostep_gradient()
Create two-step linear gradient

Colorjam assignment

Functions that assign colors to numeric vector or matrix data, or to character vectors

add_colors()
Add categorical colors to an existing color set
color_complement()
Create color complement by rotating the color hue
col_div_xf()
Divergent color interpolation function with adjustable range and floor
col_linear_xf()
Linear color interpolation function with adjustable range, baseline, and floor
group2colors()
Assign colors to vector of group labels
matrix2heatColors()
Convert numeric matrix to heatmap colors
rainbowJamMulti()
Rainbow categorical colors across multiple groups
vals2colorLevels()
Apply color gradient to numeric values
vibrant_color_by_hue()
Get vibrant reference color for a given HCL color hue

Colorjam ggplot2 functions

Functions that apply colorjam to ggplot2 objects

scale_color_div_xf() scale_fill_div_xf()
Continuous divergent color scale for ggplot2, with max and optional floor
scale_color_jam()
Apply rainbowJam categorical colors to a ggplot2 object
scale_color_linear_xf() scale_fill_linear_xf()
Continuous linear color scale for ggplot2, with max and optional floor
scale_fill_jam()
Apply rainbowJam categorical color fill to a ggplot2 object
theme_jam()
Jam default theme for ggplot2

Colorjam data

Jam linear and divergent gradient data

jam_divergent
Jam Divergent Color Gradients
jam_linear
Jam Linear Color Gradients
named_colors
named_colors from meodai/color-names and R colors()

Colorjam display

Functions to display colors for visual review

color_pie()
Show colors spread around a pie chart
combine_alphas()
Combine alpha transparency values with additive logic
showDichromat()
Show colors using dichromat color blindness adjustment

Colorjam hue warp

Custom color wheel functions, mostly internal use by colorjam.

add_colorjam_preset()
Add colorjam hue warp preset
add_colorjam_step()
Add colorjam chroma/luminance step
adjust_hue_warp()
Adjust the color hue warp effect
approx_degrees()
Interpolation for degree angles
colorjam_presets()
Colorjam hue warp presets
colorjam_steps()
Colorjam chroma/luminance steps
display_degrees()
Display degree angles around a unit circle
h2hw()
Convert standard hue to warped virtual hue
h2hwOptions()
Get hue color warp options
hcl_to_hsl_hue()
Convert HCL hue to HSL hue
hsl_to_hcl_hue()
Convert HSL hue to HCL hue
hw2h()
Convert warped virtual hue to standard hue
mean_angle()
Calculate the mean angle
plot_colorjam_preset()
Plot colorjam preset
plot_colorjam_steps()
Plot colorjam steps
remap_colorjam_preset()
Remap colors to a new colorjam preset
validate_colorjam_preset()
Validate h1,h2 color hue warp data

Colorjam R-shiny App

Colorjam R-shiny App

colorjamShinyServer()
Colorjam R-shiny app server
colorjamShinyUI()
Colorjam R-shiny app UI
launchColorjamShiny()
Colorjam R-shiny App

Colorjam internal functions

Functions to be removed or hidden in future versions

color_distance()
Calculate color distance between two or more colors
find_color_spread()
Find a spread of colors with minimum distance between them
jam_pal()
Jam color palette for ggplot2
rainbowJam_v1()
rainbow categorical colors using varied luminance and chroma
show_color_distance()
Show color distance as a heatmap
slot_colors()
Slot a set of colors into a reference set of colors
vals2colorLevels()
Apply color gradient to numeric values