Skip to contents

Plot ICC or OCC

Usage

ICCplot(
  fit,
  selected_item,
  theta = seq(-4, 4, 0.1),
  plot.occ = FALSE,
  addlabel = F,
  base_size = 16,
  line_size = 1,
  cal_option = "D"
)

Arguments

fit

an object from runGRM

selected_item

a numeric indicating for what items the function makes plots

theta

a numeric indicating latent traints

plot.occ

a logical. If TURE, OCC is made instead of ICC

addlabel

a logical indicating whether to add the b parameter as labels

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 color specified in scale_color_viridis_d (default = D)

Value

a ggplot object.

Details

This makes either item characteristic curve plots or operating characteristic curve plots

Examples

if (FALSE) {
ICCplot(ipar, 1, seq(-3, 3, .1), plot.occ = FALSE, base_size = 16)
ICCplot(ipar, selected_item=2:4, theta=seq(-3, 3, .1), plot.occ = T, base_size = 16)
}