Generate Alluvial Plots with a Single Line of Code

Alluvial plots are similar to sankey diagrams and visualise categorical data over multiple dimensions as flows. (Rosvall M, Bergstrom CT (2010) Mapping Change in Large Networks. PLoS ONE 5(1): e8694. Their graphical grammar however is a bit more complex then that of a regular x/y plots. The 'ggalluvial' package made a great job of translating that grammar into 'ggplot2' syntax and gives you many options to tweak the appearance of an alluvial plot, however there still remains a multi-layered complexity that makes it difficult to use 'ggalluvial' for explorative data analysis. 'easyalluvial' provides a simple interface to this package that allows you to produce a decent alluvial plot from any dataframe in either long or wide format from a single line of code while also handling continuous data. It is meant to allow a quick visualisation of entire dataframes with a focus on different colouring options that can make alluvial plots a great tool for data exploration.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.8 by Bjoern Koneswarakantha, 2 days ago

Browse source code at

Authors: Bjoern Koneswarakantha [aut, cre] (< 0000-0003-4585-7799>)

Documentation:   PDF Manual  

CC0 license

Imports purrr, tidyr, dplyr, forcats, ggalluvial, ggplot2, RColorBrewer, recipes, rlang, stringr, magrittr, tibble

Suggests testthat, covr, ISLR, nycflights13, vdiffr

See at CRAN