Package: colorrepel 0.5.2
colorrepel: Repel Visually Similar Colors for Colorblind Users in Various Plots
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>.
Authors:
colorrepel_0.5.2.tar.gz
colorrepel_0.5.2.zip(r-4.7-any)colorrepel_0.5.2.zip(r-4.6-any)colorrepel_0.5.2.zip(r-4.5-any)
colorrepel_0.5.2.tgz(r-4.6-any)colorrepel_0.5.2.tgz(r-4.5-any)
colorrepel_0.5.2.tar.gz(r-4.7-any)colorrepel_0.5.2.tar.gz(r-4.6-any)
colorrepel_0.5.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
colorrepel/json (API)
| # Install 'colorrepel' in R: |
| install.packages('colorrepel', repos = c('https://raysinensis.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/raysinensis/color_repel/issues
Last updated from:eeda8e6129. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 185 | ||
| source / vignettes | OK | 225 | ||
| linux-release | OK | 167 | ||
| macos-release | OK | 194 | ||
| macos-oldrel | OK | 203 | ||
| windows-devel | OK | 126 | ||
| windows-release | OK | 108 | ||
| windows-oldrel | OK | 98 | ||
| wasm-release | OK | 170 |
Exports:average_clustersaverage_clusters_rowwiseby_cluster_samplingcolor_repelget_labsgg_color_repelggplotly_backgroundlabel_repelscale_color_repelscale_colour_repelscale_fill_repel
Dependencies:abindaskpassbase64encBHbslibcachemclicolorspacecpp11crosstalkcurldata.tabledeldirdigestdistancesdplyrdqrngevaluatefarverfastmapfontawesomefsgenericsggforceggplot2ggrepelgluegoftestgtablegtoolshighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclemagrittrmascaradeMASSMatrixmatrixStatsmemoisemimenlmeopensslotelpillarpkgconfigplotlyplyrpngPolychromepolyclippolylabelrpromisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownS7sassscalesscatterplot3dsitmospatstat.dataspatstat.explorespatstat.geomspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstringistringrsyssystemfontstensortibbletidyrtidyselecttinytextweenrutf8vctrsviridisLitewithrxfunyaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Average expression values per cluster | average_clusters |
| Rowwise math from matrix/data.frame per cluster based on another vector/metadata, similar to clustifyr::average_clusters but ids as rows | average_clusters_rowwise |
| Balanced downsampling of matrix/data.frame based on cluster assignment vector | by_cluster_sampling |
| Distance calculations for spatial coord | calc_distance |
| Reorder ggplot colors to maximize color differences in space | color_repel |
| Extract custom labels from ggplot object | get_labs |
| Wrapper to reorder ggplot colors to maximize color differences in space | gg_color_repel |
| Prepare ggplot object to ggplotly-compatible layer and image layer | ggplotly_background |
| ggrepel labeling of clusters | label_repel |
| Score matrix distances | matrix2_score |
| Score matrix distances in multiple combinations | matrix2_score_n |
| Add a color-repel scale to a ggplot | scale_color_repel scale_colour_repel scale_fill_repel |