Skip to content

colorrepel

Repel Visually Similar Colors for Colorblind Users in Various Plots

v0.4.3 · Jul 21, 2025 · MIT + file LICENSE

Description

Iterate and repel visually similar colors away in various 'ggplot2' plots. When many groups are plotted at the same time on multiple axes, for instance stacked bars or scatter plots, effectively ordering colors becomes difficult. This tool iterates through color combinations to find the best solution to maximize visual distinctness of nearby groups, so plots are more friendly toward colorblind users. This is achieved by two distance measurements, distance between groups within the plot, and CIELAB color space distances between colors as described in Carter et al., (2018) <doi:10.25039/TR.015.2018>.

Downloads

263

Last 30 days

16453rd

679

Last 90 days

2.7K

Last year

Trend: +20.1% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies matrixStats Matrix distances dqrng gtools purrr dplyr plyr stringr ggplot2 ggrepel plotly knitr png Polychrome colorrepel

Version History

new 0.4.3 Mar 10, 2026
updated 0.4.3 ← 0.4.1 diff Jul 20, 2025
updated 0.4.1 ← 0.3.0 diff Jan 18, 2025
updated 0.3.0 ← 0.1.0 diff Sep 28, 2024
new 0.1.0 Sep 16, 2024