davidsjoberg / ggsankey

Make sankey, alluvial and sankey bump plots in ggplot
Other
262 stars 30 forks source link

Fix mislabeling of nodes, error in StatSankeyBumpFlow and some cleanup #45

Closed Henning-Lenz closed 6 months ago

Henning-Lenz commented 7 months ago

Originally StatSankeyText and StatSankeyFlow group their data differently while StatSankeyText also takes into account next_x. This leads to multiple labels for a node if there are different flows going to different nodes that are not direct neighbors (e.g. skipping one stage with a flow). The whole layout is cluttered by those additional labels as they also shift the correct ones.

Henning-Lenz commented 7 months ago

Added some more stuff: