tracelines_poly {airt}R Documentation

Function to plot tracelines from a polytomous IRTmodel

Description

This function makes a dataframe from the polytomous IRTmodel. The autoplot function can be used to plot trace lines

Usage

tracelines_poly(model)

## S3 method for class 'tracelinespoly'
autoplot(
  object,
  xlab = "Theta",
  ylab = "Probability",
  nrow = 2,
  title = "Tracelines",
  ...
)

Arguments

model

Output from the function pirtmodel.

object

For autoplot: output of tracelines_poly function.

xlab

For autoplot: xlabel.

ylab

For autoplot: ylabel.

nrow

For autoplot: number of rows of heatmaps to plot.

title

For autoplot: the title for the plot.

...

Other arguments currently ignored.

Value

Dataframe with output probabilities from the IRT model for all algorithms, an object of the class tracelinespoly.

Examples

data(classification_poly)
mod <- pirtmodel(classification_poly)
obj <- tracelines_poly(mod)
head(obj$df)
autoplot(obj)


[Package airt version 0.2.2 Index]