View source: R/itempersonmap.r
itempersonMap | R Documentation |
This function takes a fitted mirt-model and visualizes and plots item-person-map (also known as Kernel-Density Plots or Wright maps) on the left, and add a scale characteristic curve, scale information curve, and a marginal reliability curve on the right.
itempersonMap(
model,
theta_range = c(-4, 4),
title = "Item Person Map",
margin = c(1, 0, -1.5, 0),
density = FALSE,
color = "red",
shape = 17,
size = 3,
theme = theme_minimal(),
...
)
model |
an object of class |
title |
title for the plot (defaults to "Item-Person-Map") |
margin |
margins around the top figure. Sometimes one might want to adjust this. |
density |
logical value indicating whether a smoothed density curve or a standard histogram should be plotted. |
color |
color of the geoms, defaults to "red". |
shape |
can be used to change the shape of the geom, defaults to triangles (17). |
size |
size of the geom, default to 3. |
theme |
any ggplot theme. |
... |
any argument passed to |
limits |
range to be shown on the x-axis |
a plot grid as returned by cowplot::plot_grid()
library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod <- mirt(data, 1))
itempersonMap(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.