corybrunson / ggalluvial

ggplot2 extension for alluvial plots
http://corybrunson.github.io/ggalluvial/
GNU General Public License v3.0
499 stars 34 forks source link

Add vertical spacing between stratum nodes #121

Closed msto closed 1 year ago

msto commented 1 year ago

Description of the issue

Hi,

Would it be possible to add a parameter to geom_alluvium() and geom_stratum() that adds vertical spacing between strata on the same axis?

corybrunson commented 1 year ago

Hi @msto, this is a reasonable issue that's been raised a few times before (e.g. #28). The reason i haven't added it is that it's incompatible with a key existing (and motivating) feature of {ggalluvial}—the continuous vertical axis. I mention this briefly in the README, but i explain it in more detail in the JOSS paper—see the "Concepts" section, last two paragraphs.

For Sankey diagrams of the sort i suspect that you want, that section mentions several other packages you may want to try, including {ggforce} and {ggsankey}. Would they suit your needs?

msto commented 1 year ago

Thank you!

I hadn't seen ggforce::geom_parallel_sets() before but that's along the lines of what I'm looking for.