corybrunson / ggalluvial

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

designate negative strata #45

Closed corybrunson closed 4 years ago

corybrunson commented 4 years ago

Desideratum

It may be useful to separate typical strata, which stack in the positive y direction, from a subset of "negative" strata that stack in the negative y direction.

Example

I don't know how best to do this, but a cool example is Figure 4 in this paper by Edwards and Pinkerton.

corybrunson commented 4 years ago

The implementation should put positive and negative cases into separate strata; any stratum value with both positive and negative cases should be split between positive and negative parts. Whether positive and negative cases can cancel each other out in a way that maintains consistency across the three stats (stratum, flow, alluvium) is unclear and may not be worth pursuing.

corybrunson commented 4 years ago

Resolved by f3c6a5c46ce371de923b1c5126e43177811fa982 through 27cca5cba3aa8f7b6e24844178e41494be35266a.