plot.fps_weighting: Plot diagnostics for fps_weighting objects

View source: R/plot_methods.R

plot.fps_weightingR Documentation

Plot diagnostics for fps_weighting objects

Description

Plot diagnostics for fps_weighting objects

Usage

## S3 method for class 'fps_weighting'
plot(x, type = "balance", max_efn = 4, ...)

Arguments

x

An object of class "fps_weighting".

type

Character. One of:

"balance"

Absolute Pearson correlations between each treatment FPC score and each confounder, before (red) and after (blue) weighting, displayed as connected point-line chart.

"fpca_treatment"

Scree plot (eigenvalues + cumulative PVE) and panel of leading eigenfunctions for the treatment FPCA.

"fpca_covariates"

Same as "fpca_treatment" for each functional covariate (returns a list of ggplot2 objects).

"weights"

Boxplot of the estimated weights with a horizontal reference line at the uniform weight 1/n.

max_efn

Integer. Maximum number of eigenfunctions to show in FPCA panels (default 4).

...

Ignored.

Value

A ggplot2 object (or a list of them for type = "fpca_covariates").


FPScausal documentation built on Aug. 9, 2026, 9:07 a.m.