This package use base R graphics (R Core Team 2021) package. For
Grammar of Graphics implementation see
ggalluvial (Brunson and
Read 2020; Brunson 2020).
Examples
Alluvial diagram of datasets::Titanic data made with alluvial().
Notice how each category block becomes a stacked barchart showing
relative frequency of survivors.
Brunson, Jason Cory. 2020. “ggalluvial:
Layered Grammar for Alluvial Plots.” Journal of Open Source Software 5
(49): 2017. https://doi.org/10.21105/joss.02017.
R Core Team. 2021. R: A Language and Environment for Statistical
Computing. Vienna, Austria: R Foundation for Statistical Computing.
https://www.R-project.org/.
R package for drawing alluvial diagrams
What are alluvial diagrams? See for example:
This package use base R graphics (R Core Team 2021) package. For Grammar of Graphics implementation see ggalluvial (Brunson and Read 2020; Brunson 2020).
Examples
Alluvial diagram of
datasets::Titanicdata made withalluvial(). Notice how each category block becomes a stacked barchart showing relative frequency of survivors.Alluvial diagram for multiple time series / cross-sectional data based on
alluvial::Refugeesdata made withalluvial_ts().Installation
Install stable version from CRAN using
or development version from GitHub using
remotes::install_github():References
Brunson, Jason Cory. 2020. “ggalluvial: Layered Grammar for Alluvial Plots.” Journal of Open Source Software 5 (49): 2017. https://doi.org/10.21105/joss.02017.
Brunson, Jason Cory, and Quentin D. Read. 2020. “Ggalluvial: Alluvial Plots in ’Ggplot2’.” http://corybrunson.github.io/ggalluvial/.
R Core Team. 2021. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.