| plotIRP_gg | R Documentation |
This function takes exametrika output as input and generates Item Reference Profile (IRP) plots using ggplot2. IRP shows the probability of a correct response for each item at each latent class or rank level.
plotIRP_gg(
data,
title = TRUE,
colors = NULL,
linetype = "dashed",
show_legend = FALSE,
legend_position = "right"
)
data |
An object of class |
title |
Logical or character. If |
colors |
Character vector. Color(s) for points and lines.
If |
linetype |
Character or numeric specifying the line type.
Default is |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The Item Reference Profile visualizes how item difficulty varies across latent classes (LCA) or ranks (LRA, LDLRA). Items with monotonically increasing profiles indicate good discrimination between classes/ranks.
A list of ggplot objects, one for each item. Each plot shows the correct response rate across latent classes or ranks.
plotFRP_gg, plotTRP_gg
library(exametrika)
result <- LRA(J15S500, nrank = 5)
plots <- plotIRP_gg(result)
plots[[1]] # Show IRP for the first item
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.