Scattered Stacked Bar Chart Plots

Provides a powerful and flexible tool for visualizing proportional data across spatially resolved contexts. By combining the concepts of scatter plots and stacked bar charts, 'scatterbar' allows users to create scattered bar chart plots, which effectively display the proportions of different categories at each (x, y) location. This visualization is particularly useful for applications where understanding the distribution of categories across spatial coordinates is essential. This package features automatic determination of optimal scaling factors based on data, customizable scaling and padding options for both x and y axes, flexibility to specify custom colors for each category, options to customize the legend title, and integration with 'ggplot2' for robust and high-quality visualizations. For more details, see Velazquez et al. (2024) .


scatterbar

scatterbar is an open-source R package for displaying proportional data across spatially resolved contexts. This is the scatterbar R documentation website. Questions, suggestions, or problems should be submitted as GitHub issues.

Overview

By combining the concepts of scatter plots and stacked bar charts, scatterbar allows users to visualize variations in proportional data data and compare across different spatial locations.

Installation

To install scatterbarfrom GitHub, we recommend using remotes:

require(remotes)
remotes::install_github('JEFworks-Lab/scatterbar')

Tutorials

Citation

Our preprint describing scatterbar is available on bioRxiv:

Velazquez D. et al. (2024), "scatterbar: an R package for visualizing proportional data across spatially resolved coordinates", bioRxiv

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("scatterbar")

0.1.0 by Dee Velazquez, 2 years ago


https://github.com/JEFworks-Lab/scatterbar, http://jef.works/scatterbar/


Report a bug at https://github.com/JEFworks-Lab/scatterbar/issues


Browse source code at https://github.com/cran/scatterbar


Authors: Dee Velazquez [aut, cre] , Jean Fan [aut, rev]


Documentation:   PDF Manual  


GPL-3 license


Imports magrittr, dplyr, tidyr, ggplot2

Suggests knitr, rmarkdown, patchwork


See at CRAN