Alluvial Diagram Maker

Show how patients, participants or records move between categories across time points or variables. Paste your data, pick a journal size, and export a publication-ready figure.

Loading the diagram editor…

Alluvial diagram examples

Open an example in the editor above, then replace the data with your own. All datasets are illustrative.

Clinical research

Disease severity over 12 months

Patients by severity at baseline, month 6 and month 12, including dropouts.

About this example
Survey & social science

Attitude change after an intervention

Respondents’ attitude before, right after and six months after a program, with a diverging color scheme.

About this example
Education

Graduate career pathways

Graduates by field of study, first job and job five years later.

About this example
Ecology & geography

Land-cover change, 2000–2020

Area (km²) converted between land-cover classes, with decimal values and custom class colors.

About this example
Genomics

Cell-type annotation agreement

Single-cell clusters and the cell types assigned by two annotation methods, colored by the middle stage.

About this example
Epidemiology

Smoking status (one row per participant)

Raw participant-level data without a count column: each row is counted once.

About this example

How to make an alluvial diagram

  1. Prepare your data with one column per stage (for example Baseline, Month 6, Month 12) and, optionally, a count column.
  2. Paste it into the data box: copy the cells in Excel or Google Sheets and press Ctrl+V, or drop your .xlsx or CSV file on it. No data yet? Download the Excel template from the data box.
  3. Choose the stages to include and the column that holds counts. Leave the value column as “None” if each row is one participant.
  4. Set the figure size. In 3. Size & fonts, pick your target journal to apply its width, font, text and line sizes in one step, or set them by hand. A line under the diagram flags anything outside the journal's rules as you edit.
  5. Export a vector PDF or SVG for submission, a TIFF for journals that ask for one, or a 600 dpi PNG for Word and slides.

Data format

Use a “wide” table: one row per combination of categories (with a count) or one row per individual (without a count).

BaselineMonth 6Month 12Patients
SevereModerateMild14
ModerateMildRemission24
MildRemissionRemission36

Empty cells and missing-value markers (NA, n/a, NaN, “.”, “-”, Excel errors such as #N/A) are shown as “(blank)”; “None”, “Missing” and “NR” stay categories of their own. Rows with a missing, zero or negative count are skipped and reported under the data box.

Alluvial vs. Sankey diagram

A Sankey diagram shows flows between any nodes in a network, such as energy moving through a system. An alluvial diagram is a special case in which nodes are grouped into ordered stages, and each flow is the same group of units changing category from one stage to the next. Use an alluvial diagram for repeated measures, patient pathways, cohort transitions, survey responses across questions, or classification changes.

Journal figure sizes

LayoutTypical width
Single column80–90 mm
1.5 column110–140 mm
Double column (full page width)170–190 mm

Text size rules differ more than widths do: Nature asks for 5–7 pt, Elsevier for at least 7 pt and PLOS ONE for 8–12 pt at final size. The Journal menu holds these rules for ten journals and publishers, taken from their author guidelines; for any other journal, check its guidelines and set the size by hand. Colors should also stay readable for colorblind readers; the Okabe–Ito and Paul Tol palettes in this tool are designed for that.

Tips for a clear alluvial diagram

  • Keep each stage to about eight categories or fewer; merge small categories into “Other”.
  • Color flows by the stage your readers should follow, usually the first stage.
  • Use the same category order across stages so readers can compare heights.
  • Report the total number of units in the figure legend.

Frequently asked questions

Is the alluvial diagram maker free?

Yes. You can create diagrams and export SVG, PDF, PNG and TIFF files without an account.

Is my data uploaded anywhere?

No. All parsing, drawing and exporting happens in your browser. Your data is never sent to a server, which makes the tool suitable for unpublished or clinical data.

What is the difference between an alluvial diagram and a Sankey diagram?

Both draw flows with widths proportional to quantity. An alluvial diagram is a Sankey diagram whose nodes are arranged in fixed, ordered stages (such as time points or categorical variables), so it shows how the same units move between categories across stages.

Which file format should I submit to a journal?

Most journals prefer vector files (PDF, EPS or SVG) for charts because they stay sharp at any size. If a raster file is required, export PNG or TIFF at the final printed width: Elsevier asks for 1000 dpi and Springer and BMJ for 1200 dpi for line art, and PLOS ONE accepts only TIFF or EPS. When you choose a journal in “3. Size & fonts”, the export bar marks its preferred format and sets the dpi it asks for. PDF exports embed their fonts, as journals require.

Can I apply a journal’s figure rules to an alluvial diagram?

Yes. Choose the journal in the Journal menu under “3. Size & fonts”. Where the journal states them, the diagram moves to the nearest allowed width, gets an allowed font, and keeps category labels and stage titles within the journal’s text sizes. For Springer, for example, the thinnest flows and leader lines are drawn at least 0.3 pt wide, Springer’s minimum, so small groups stay visible in print. If labels crowd, “Shrink labels to fit” never goes below the journal’s minimum text size. Frontiers asks for lines at least 2 pt wide; the check under the diagram reports this but never thickens lines, because that would make most charts heavy. Ten presets are included (Nature, Elsevier, Springer, PLOS ONE, Frontiers, BMC, Wiley, BMJ, JAMA and NEJM), and every setting stays editable.

Can I edit my diagram later, for example after peer review?

Yes. Click “Save project file” to download a small file with your data, category order, colors and settings. Open it later with “Open project file” to continue exactly where you left off. The editor also remembers your last diagram in this browser.

How do I change the order or color of categories?

Use the “Categories: order & colors” panel. Pick a stage, drag categories into the order you want (or use the arrow buttons), and click a color swatch to set a category’s color.

Can I reproduce the figure in R?

Yes. Click “R code” to get a ggplot2 + ggalluvial script that contains your aggregated data, colors, fonts and figure size.

How do I cite CleanFigure?

You can write: “Figures were created with CleanFigure (https://cleanfigure.com).” A DOI-based citation will be available soon.