Package: colorrepel 0.3.1
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.3.1.tar.gz
colorrepel_0.3.1.zip(r-4.5)colorrepel_0.3.1.zip(r-4.4)colorrepel_0.3.1.zip(r-4.3)
colorrepel_0.3.1.tgz(r-4.4-any)colorrepel_0.3.1.tgz(r-4.3-any)
colorrepel_0.3.1.tar.gz(r-4.5-noble)colorrepel_0.3.1.tar.gz(r-4.4-noble)
colorrepel_0.3.1.tgz(r-4.4-emscripten)colorrepel_0.3.1.tgz(r-4.3-emscripten)
colorrepel.pdf |colorrepel.html✨
colorrepel/json (API)
NEWS
# 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 2 months agofrom:910a34e03f. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 01 2024 |
R-4.5-win | OK | Nov 01 2024 |
R-4.5-linux | OK | Nov 01 2024 |
R-4.4-win | OK | Nov 01 2024 |
R-4.4-mac | OK | Nov 01 2024 |
R-4.3-win | OK | Nov 01 2024 |
R-4.3-mac | OK | Nov 01 2024 |
Exports:average_clustersaverage_clusters_rowwiseby_cluster_samplingcolor_repelget_labsgg_color_repelggplotly_backgroundlabel_repel
Dependencies:ashaskpassbase64encBHbslibcachemclicolorspacecpp11crosstalkcurldata.tabledigestdistancesdplyrdqrngevaluateextrafontextrafontdbfansifarverfastmapfontawesomefsgenericsggaltggplot2ggrepelgluegtablegtoolshighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclemagrittrmapsMASSMatrixmatrixStatsmemoisemgcvmimemunsellnlmeopensslpillarpkgconfigplotlypngproj4promisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownRttf2pt1sassscalessitmostringistringrsystibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml
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 |