corybrunson / ggalluvial

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

write a new vignette about how flows are ordered within strata #36

Closed corybrunson closed 5 years ago

corybrunson commented 5 years ago

A lot of functionality goes into this determination, and most of it in most use cases is obscured from the user. See the exposition in this SO answer.

RubieLu commented 5 years ago

I am wondering if ggalluvial can remain the natural order of the rows within strata. I have tried aes.bind = TRUE, but the result was not what I expected. Since the order of my dataset is meaningful, is it possible to plot without intersecting the strata at lodes?

corybrunson commented 5 years ago

You can control the order of lodes within strata by passing to the lode.ordering parameter in stat_alluvium(), as illustrated in the stat_alluvium() documentation. Is that what you're after? I'll definitely include an example of this option in the vignette.

Could you explain further what you mean by "without intersecting the strata at lodes"? The strata don't actually intersect, rather the alluvia intersect the strata at the lodes, and this is necessary if the diagram includes both alluvia and strata.