Skip to contents

Displays a Wright map showing the joint distribution of person abilities and item difficulties on a common logit scale. Useful for identifying gaps in item coverage. Requires ggplot2.

Usage

dpmirt_plot_wright_map(fit, bins = 30, item_labels = NULL, ...)

Arguments

fit

A dpmirt_fit object from dpmirt.

bins

Integer. Number of histogram bins. Default: 30.

item_labels

Optional character vector of item labels.

...

Currently unused.

Value

A ggplot object.

Examples

if (FALSE) { # \dontrun{
sim <- dpmirt_simulate(200, 20, model = "rasch", seed = 42)
fit <- dpmirt(sim$response, model = "rasch", prior = "normal",
              niter = 5000, nburnin = 1000, seed = 123)
dpmirt_plot_wright_map(fit)
} # }