Skip to contents

Renders cohort attrition flow diagrams in standalone SVG or interactive Plotly Sankey structure.

Usage

plot_consort_flow(
  attrition,
  format = c("svg", "plotly"),
  title = "Cohort Attrition Flow (CONSORT)",
  output_path = NULL
)

Arguments

attrition

A data.frame, list, or attrition summary object.

format

Output format: 'svg' (vector diagram) or 'plotly' (interactive list).

title

Diagram title.

output_path

Optional file path to write SVG output.

Value

SVG string (for 'svg') or list structure (for 'plotly').