Creates transition tables, summaries, and interactive Sankey
diagrams from longitudinal person-term-state data. Sankey diagrams
visualize flows between states with link widths proportional to flow
counts; see Kennedy and Sankey (1898) "The Thermal Efficiency of Steam
Engines"
Utilities for retention flow tables and Sankey diagrams.
library(retentionflow)
data(stem_retention)
plot_sankey(
stem_retention,
target_state = "Biology",
title = "STEM Retention Flow",
title_font_size = 22,
title_y = 0.975,
top_margin = 65,
term_label_y = 1.02,
sankey_domain_top = 0.96
)