Retention Flow Tables and Sankey Diagrams

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" and Schmidt (2008) "The Sankey Diagram in Energy and Material Flow Management: Part I: History" . The minimum input schema is one row per person per term with an identifier, term, and categorical state.


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
)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("retentionflow")

0.1.25 by Alexander Nanni, 3 months ago


Browse source code at https://github.com/cran/retentionflow


Authors: Alexander Nanni [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests htmlwidgets, plotly, testthat


See at CRAN