Package: ggalluvial 0.12.6

ggalluvial: Alluvial Plots in 'ggplot2'

Alluvial plots use variable-width ribbons and stacked bar plots to represent multi-dimensional or repeated-measures data with categorical or ordinal variables; see Riehmann, Hanfler, and Froehlich (2005) <doi:10.1109/INFVIS.2005.1532152> and Rosvall and Bergstrom (2010) <doi:10.1371/journal.pone.0008694>. Alluvial plots are statistical graphics in the sense of Wilkinson (2006) <doi:10.1007/0-387-28695-0>; they share elements with Sankey diagrams and parallel sets plots but are uniquely determined from the data and a small set of parameters. This package extends Wickham's (2010) <doi:10.1198/jcgs.2009.07098> layered grammar of graphics to generate alluvial plots from tidy data.

Authors:Jason Cory Brunson [aut, cre], Quentin D. Read [aut]

ggalluvial_0.12.6.tar.gz
ggalluvial_0.12.6.zip(r-4.7)ggalluvial_0.12.6.zip(r-4.6)ggalluvial_0.12.6.zip(r-4.5)
ggalluvial_0.12.6.tgz(r-4.6-any)ggalluvial_0.12.6.tgz(r-4.5-any)
ggalluvial_0.12.6.tar.gz(r-4.7-any)ggalluvial_0.12.6.tar.gz(r-4.6-any)
ggalluvial_0.12.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ggalluvial/json (API)
NEWS

# Install 'ggalluvial' in R:
install.packages('ggalluvial', repos = c('https://corybrunson.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/corybrunson/ggalluvial/issues

Pkgdown/docs site:https://corybrunson.github.io

Datasets:
  • majors - Students' declared majors across several semesters
  • vaccinations - Influenza vaccination survey responses

On CRAN:

Conda:

alluvial-diagramsalluvial-plotscategorical-data-visualizationggplot2repeated-measures-data

15.47 score 520 stars 39 packages 5.0k scripts 40k downloads 57 mentions 36 exports 30 dependencies

Last updated from:285f7346ea. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK168
source / vignettesOK227
linux-release-x86_64OK197
macos-release-arm64OK196
macos-oldrel-arm64OK135
windows-develOK109
windows-releaseOK109
windows-oldrelOK173
wasm-releaseOK117

Exports:data_to_alluviumgeom_alluviumgeom_flowgeom_lodegeom_stratumGeomAlluviumGeomFlowGeomLodeGeomStratumis_alluvia_formis_alluvialis_alluvial_alluviais_alluvial_lodesis_lodes_formlode_backfrontlode_backwardlode_forwardlode_frontbacklode_leftrightlode_leftwardlode_rightleftlode_rightwardlode_zagziglode_zigzagpositions_to_flowself_adjoinstat_alluviumstat_flowstat_stratumStatAlluviumStatFlowStatStratumto_alluviato_alluvia_formto_lodesto_lodes_form

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglazyevallifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Alluvial Plots in ggplot2

Rendered fromggalluvial.rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2026-02-21
Started: 2017-04-11

Tooltips for ggalluvial plots in Shiny apps

Rendered fromshiny.Rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2023-02-03
Started: 2020-12-04

Labeling small strata

Rendered fromlabels.rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2023-02-01
Started: 2018-06-22

The Order of the Rectangles

Rendered fromorder-rectangles.rmdusingknitr::rmarkdownon May 23 2026.

Last update: 2023-02-01
Started: 2019-09-02

Readme and manuals

Help Manual

Help pageTopics
Check for alluvial structure and convert between alluvial formatsalluvial-data is_alluvia_form is_lodes_form to_alluvia_form to_lodes_form
Alluvia across stratadata_to_alluvium geom_alluvium
Flows between lodes or stratageom_flow positions_to_flow
Lodes at intersections of alluvia and stratageom_lode
Strata at axesgeom_stratum
Lode guidance functionslode-guidance-functions lode_backfront lode_backward lode_forward lode_frontback lode_leftright lode_leftward lode_rightleft lode_rightward lode_zagzig lode_zigzag
Students' declared majors across several semestersmajors
Adjoin a dataset to itselfself-adjoin self_adjoin
Alluvial positionsstat_alluvium
Flow positionsstat_flow
Stratum positionsstat_stratum
Influenza vaccination survey responsesvaccinations