autoplot.comparability: Plot a comparability diagnostic

View source: R/comparability.R

autoplot.comparabilityR Documentation

Plot a comparability diagnostic

Description

Renders a two-panel ggplot2 diagnostic for a comparability() object: score comparability (r) and loading congruence (Tucker's phi) for every factor at every level. Grey points are individual splits; black points are the per-factor medians. Dashed and dotted reference lines mark the conventional .90 / .95 benchmarks – visual guides, not tests.

Usage

## S3 method for class 'comparability'
autoplot(object, ...)

Arguments

object

A comparability object.

...

Ignored.

Details

Requires the ggplot2 package.

Value

A ggplot object.

See Also

comparability()

Examples


if (requireNamespace("ggplot2", quietly = TRUE)) {
  cmp <- comparability(sim16, k_max = 5, n_splits = 5, seed = 1)
  autoplot(cmp)
}



ackwards documentation built on July 25, 2026, 1:08 a.m.