Skip to contents

Generates an SVG Love Plot visualizing pre- and post-adjustment Standardized Mean Differences (SMDs) against the clinical 0.10 balance threshold.

Usage

plot_love_plot(
  balance_df,
  threshold = 0.1,
  title = "Covariate Balance (Love Plot)",
  output_path = NULL
)

Arguments

balance_df

Covariate balance data frame from consortium_propensity_score or generate_propensity_weights.

threshold

Numerical threshold for acceptable balance (default 0.10).

title

Chart title.

output_path

Optional path to write the SVG file.

Value

Standalone SVG string.