View source: R/api-plotting-extras.R
| plot_apa_figure_one | R Documentation |
Builds a 2x2 publication composite for an mfrm_fit, suitable for a
"Figure 1" in the Rasch-family RSM/PCM manuscript route. Panels: (1)
Wright map, (2)
rater severity profile with CI whiskers, (3) threshold ladder, (4)
a one-line reliability / separation summary block. Each panel reuses
the standalone plot helper so the visual language is consistent
with the rest of the package.
plot_apa_figure_one(
fit,
diagnostics = NULL,
rater_facet = "Rater",
ci_level = 0.95,
preset = c("standard", "publication", "compact", "monochrome"),
draw = TRUE
)
fit |
An |
diagnostics |
Optional |
rater_facet |
Facet name to use as the "rater" axis (default
|
ci_level |
Confidence level for the rater severity panel. |
preset |
Visual preset. |
draw |
If |
Invisibly, an mfrm_plot_data object whose data slot
bundles the four panel data objects under wright, severity,
threshold, and summary.
Designed for a single-figure Methods or Results overview. The summary panel prints the model class, sample size, log-likelihood, AIC/BIC, and the largest non-Person facet's separation / reliability if available.
plot.mfrm_fit() (type = "wright"),
plot_rater_severity_profile(), plot_threshold_ladder(),
build_apa_outputs().
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 30)
p <- plot_apa_figure_one(fit, draw = FALSE)
names(p$data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.