Repel Visually Similar Colors for Colorblind Users in Various Plots
Rowwise math from matrix/data.frame per cluster based on another vecto...
Average expression values per cluster
Balanced downsampling of matrix/data.frame based on cluster assignment...
Distance calculations for spatial coord
Reorder ggplot colors to maximize color differences in space
Extract custom labels from ggplot object
Wrapper to reorder ggplot colors to maximize color differences in spac...
ggrepel labeling of clusters
Score matrix distances in multiple combinations
Score matrix distances
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>.