# Examples of 3D Alluvial Plots?

**URL:** <https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739>\
**Category:** Beginners\
**Created:** [February 11, 2021, 4:39pm UTC](https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739 "2021-02-11T16:39:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tea\_tree](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tea\_tree](https://discourse.processing.org/u/tea_tree)\
**Post date:** [February 11, 2021, 4:39pm UTC](https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739/1 "2021-02-11T16:39:15Z")

</div>

Do you know of any libraries or projects that use some sort of 3-D alluvial plot to plot data with processing (obviously)?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 11, 2021, 10:33pm UTC](https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739/2 "2021-02-11T22:33:47Z")

</div>

Hi,

I think the best way to go is to use dedicated plot tools like **ggplot2** for R :

- [https://r-graphics.org/](https://r-graphics.org/)
- [https://ggplot2.tidyverse.org/](https://ggplot2.tidyverse.org/)

And there’s a package to do that, **ggalluvial** :

- [Alluvial Plots in ggplot2](https://cran.r-project.org/web/packages/ggalluvial/vignettes/ggalluvial.html)

Also related to that I have found a thread on the Sankey diagram :

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/25863/does-anybody-ever-created-examples-of-a-sankey-diagram)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

Also a library to draw plots inside Processing :

[https://jagracar.com/grafica.php](https://jagracar.com/grafica.php)

---

<div class="post-metadata">

**Author:** ![tea\_tree](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tea\_tree](https://discourse.processing.org/u/tea_tree)\
**Post date:** [February 11, 2021, 10:45pm UTC](https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739/3 "2021-02-11T22:45:00Z")

</div>

Thanks Josephh! I’m aware of the options in ggplot but I’m wondering whether somebody has taken the idea of alluvial plots and imported them into processing. The processing library you point to replicates 2D plots like the ones ggplot makes.

I’m more interested in something similar to [Ben Fry’s tree map](https://benfry.com/writing/treemap/).

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 11, 2021, 11:02pm UTC](https://discourse.processing.org/t/examples-of-3d-alluvial-plots/27739/4 "2021-02-11T23:02:36Z")

</div>

Ok sorry if you already knew that! 😉

I couldn’t see images from Ben Fry’s tree map libraries but you are looking for making a alluvial plot in 3d, is that right? Because looks like most of them are meant to be in 2d.
