Package: ggalluvial 0.12.5

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.5.tar.gz
ggalluvial_0.12.5.zip(r-4.5)ggalluvial_0.12.5.zip(r-4.4)ggalluvial_0.12.5.zip(r-4.3)
ggalluvial_0.12.5.tgz(r-4.4-any)ggalluvial_0.12.5.tgz(r-4.3-any)
ggalluvial_0.12.5.tar.gz(r-4.5-noble)ggalluvial_0.12.5.tar.gz(r-4.4-noble)
ggalluvial_0.12.5.tgz(r-4.4-emscripten)ggalluvial_0.12.5.tgz(r-4.3-emscripten)
ggalluvial.pdf |ggalluvial.html
ggalluvial/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

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

14.02 score 499 stars 18 packages 2.8k scripts 18k downloads 57 mentions 36 exports 37 dependencies

Last updated 3 months agofrom:64f66302a2. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 08 2024
R-4.5-winOKNov 08 2024
R-4.5-linuxOKNov 08 2024
R-4.4-winOKNov 08 2024
R-4.4-macOKNov 08 2024
R-4.3-winOKNov 08 2024
R-4.3-macOKNov 08 2024

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:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelazyevallifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigpurrrR6RColorBrewerrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Alluvial Plots in ggplot2

Rendered fromggalluvial.rmdusingknitr::rmarkdownon Nov 08 2024.

Last update: 2023-07-09
Started: 2017-04-11

Tooltips for ggalluvial plots in Shiny apps

Rendered fromshiny.Rmdusingknitr::rmarkdownon Nov 08 2024.

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

Labeling small strata

Rendered fromlabels.rmdusingknitr::rmarkdownon Nov 08 2024.

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

The Order of the Rectangles

Rendered fromorder-rectangles.rmdusingknitr::rmarkdownon Nov 08 2024.

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