itemInfoPlot: Plotting item information curves

View source: R/itemInfoPlot.r

itemInfoPlotR Documentation

Plotting item information curves

Description

This function takes a fitted mirt-model and visualizes items information curves.

Usage

itemInfoPlot(
  model,
  items = NULL,
  facet = FALSE,
  title = "Item Information Curves",
  theta_range = c(-4, 4),
  legend = FALSE
)

Arguments

model

an object of class SingleGroupClass returned by the function mirt().

items

numerical vector indicating which items to plot.

facet

Should all items be shown in one plot, or each item received its individal facet?

title

title for the plot (defaults to "Item Characteristic Curves")

theta_range

range to be shown on the x-axis

Value

a ggplot

Examples

library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod <- mirt(data, 1))

itemInfoPlot(mod)


masurp/ggmirt documentation built on Oct. 14, 2023, 1:16 p.m.