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) <doi:10.1101/2024.08.14.606810>.
Package details |
|
---|---|
Author | Dee Velazquez [aut, cre] (<https://orcid.org/0009-0004-4380-4794>), Jean Fan [aut, rev] (<https://orcid.org/0000-0002-0212-5451>) |
Maintainer | Dee Velazquez <dvelazq5@jhu.edu> |
License | GPL-3 |
Version | 0.1.0 |
URL | https://github.com/JEFworks-Lab/scatterbar http://jef.works/scatterbar/ |
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.