spmviz.viz.plot_sankey#

spmviz.viz.plot_sankey(db, ax=None, max_steps=5, top=8, min_count=1, anchor=None, show_end=True, title=None)[source]#

Alluvial diagram of the first steps of the sequences.

Column t stacks the events found at position t; ribbons carry the sequences to the next position. Events outside the top most frequent of a column are merged into "other"; "$" marks sequences that ended. With anchor the sequences are aligned at the end of the first occurrence of a pattern (the steps that follow it).

Examples using spmviz.viz.plot_sankey#

Sankey diagram of web-shop journeys

Sankey diagram of web-shop journeys

Case study: the UWV unemployment-benefit application

Case study: the UWV unemployment-benefit application