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>.
Package details |
|
---|---|
Author | Rui Fu [cre, aut, cph] (ORCID: <https://orcid.org/0000-0001-8183-4549>) |
Maintainer | Rui Fu <raysinensis@gmail.com> |
License | MIT + file LICENSE |
Version | 0.4.3 |
URL | https://github.com/raysinensis/color_repel |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.