tracelines_poly: 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 tracelinespoly
autoplot(
object,
xlab = "Theta",
ylab = "Probability",
nrow = 2,
title = "Tracelines",
...
)
Value
Dataframe with output probabilities from the IRT model for all algorithms, an object of
the class tracelinespoly.
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.
Examples
Run this codedata(classification_poly)
mod <- pirtmodel(classification_poly)
obj <- tracelines_poly(mod)
head(obj$df)
autoplot(obj)
Run the code above in your browser using DataLab