View source: R/itemDistribution.r
| itemDist | R Documentation | 
This function requires a fitted mirt-model of class SingleGroupClass to visualize item difficulty distribution. Currently only works for unidimensional models.
itemDist(model, theta_range = c(-4, 4), ...)
| model | an object of class  | 
| ... | any argument passed to  | 
a ggplot object.
# Loading packages
library(mirt)
library(ggmirt)
# Getting data
data <- expand.table(LSAT7)
# Fitting a model 
(mod <- mirt(data, 1))
# Simple plot
itemDist(mod)
# Customized plot
itemDist(mod, size = 3, shape = 17, color = "blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.