View source: R/api-plotting-screening.R
| plot_guttman_scalogram | R Documentation |
Draws a person x item (or person x facet-level) matrix coloured by observed category, with rows ordered by person measure and columns ordered by location measure. Unexpected responses (those that fall far from the expected category at a given theta) are highlighted with a heavy border so the visual reads as a Rasch-convention Guttman scalogram.
plot_guttman_scalogram(
fit,
diagnostics = NULL,
column_facet = NULL,
top_n_persons = 40L,
highlight_unexpected = TRUE,
preset = c("standard", "publication", "compact", "monochrome"),
draw = TRUE
)
fit |
An |
diagnostics |
Optional |
column_facet |
Facet name used for the columns. Default
|
top_n_persons |
Maximum number of persons shown (default
|
highlight_unexpected |
Logical. When |
preset |
Visual preset. |
draw |
If |
An mfrm_plot_data object whose data slot bundles the
scalogram matrix and the optional unexpected-response overlay.
unexpected_response_table() for the case-level review of
the cells flagged in the overlay;
plot_rater_agreement_heatmap() for a complementary rater-pair
view of the same residual structure;
diagnose_mfrm() for the underlying diagnostics bundle.
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score",
method = "JML", maxit = 30)
p <- plot_guttman_scalogram(fit, draw = FALSE)
dim(p$data$matrix)
# Look for: a clean monotone "staircase" of higher scores in the
# upper-right triangle and lower scores in the lower-left, once
# rows are sorted by person ability. Cells circled by the
# unexpected-response overlay break the staircase and warrant
# case-level review with `unexpected_response_table()`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.