Skip to contents

Generates an SVG matrix heatmap comparing attrition retention rates across consortium sites.

Usage

plot_multisite_attrition_heatmap(
  attrition_df,
  site_col = "site",
  step_col = "step_name",
  retention_col = "percent_retained",
  title = "Multi-Site Attrition Profile (% Retained)",
  output_path = NULL
)

Arguments

attrition_df

Data frame containing site, step, and retention percent columns.

site_col

Name of column identifying site (default "site").

step_col

Name of column identifying step name (default "step_name").

retention_col

Name of column identifying retention percent (default "percent_retained").

title

Chart title.

output_path

Optional file path to write SVG output.

Value

Standalone SVG heatmap string.