Related Experiment Video
Updated: Aug 6, 2025

Soil Lysimeter Excavation for Coupled Hydrological, Geochemical, and Microbiological Investigations
Published on: September 11, 2016
ggalluvial: Layered Grammar for Alluvial Plots
1Center for Quantitative Medicine, UConn Health.
Abstract:
Alluvial diagrams use stacked bar plots and variable-width ribbons to represent multi-dimensional or repeated-measures data comprising categorical or ordinal variables (Bojanowski & Edwards, 2016; Rosvall & Bergstrom, 2010). The ggalluvial package extends the layered grammar of graphics of ggplot2 (Wickham, 2016) to generate alluvial diagrams from tidy data (Wickham, 2014). The package makes two key contributions to the R ecosystem. First, ggalluvial anchors the imprecise notion of an alluvial diagram to the rigid grammar of graphics (Wilkinson, 2006), which lends the plots more precise meaning and opens up many combinatorial possibilities. Second, ggalluvial adopts a distinctive geological nomenclature to distinguish "alluvial plots" and their graphical elements from Sankey diagrams and parallel sets plots, which I hope prove useful as these visualization tools converge toward common standards.
Related Concept Videos
Thematic Layering in GIS
Design Example: Maintaining Level of an Embankment
Plotting of Topographic Maps
Design Example: Aggregate Gradation
The grading, or particle-size distribution, of sand is determined using sieve analysis, with standard sizes ranging from 150 μm to 10 mm (ASTM No. 100 sieve to 3⁄8 in. sieve). Sand is...
Methods of Obtaining Topography
Levels of Use of a GIS

