retentionflow

Utilities for retention flow tables and Sankey diagrams.

Example

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
)