Skip to contents

Calculate item information

Usage

infoPlot(
  fit,
  selected_item,
  type = "icc",
  theta = seq(-4, 4, 0.1),
  base_size = 16,
  line_size = 1,
  cal_option = "D",
  facet = F
)

Arguments

fit

an object from runGRM

selected_item

a numeric indicating for what items the function makes plots

type

a character indicating the type of plots

  • icc Test information

  • tcc Total Test information

theta

a numeric indicating latent traints

base_size

a numeric indicating the base font size

line_size

a numeric indicating the size of line

cal_option

a character indicating the plot colour specified in scale_color_viridis_d (default = D)

facept

a logical. If TRUE, the plot is faceted by items. (efault = FALSE).

Value

a ggplot object.

Details

This makes either item information plots or total information plot

Examples

if (FALSE) {
infoPlot(ipar, selected_item=1:4, type = "icc", base_size = 16)
infoPlot(ipar, selected_item=1:2, type = "tcc", base_size = 16)
}