View source: R/comparability.R
| autoplot.comparability | R Documentation |
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.
## S3 method for class 'comparability'
autoplot(object, ...)
object |
A |
... |
Ignored. |
Requires the ggplot2 package.
A ggplot object.
comparability()
if (requireNamespace("ggplot2", quietly = TRUE)) {
cmp <- comparability(sim16, k_max = 5, n_splits = 5, seed = 1)
autoplot(cmp)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.