| plotRMP_gg | R Documentation |
This function takes exametrika output as input and generates Rank Membership Profile (RMP) plots using ggplot2. RMP shows each student's membership probability across all latent ranks.
plotRMP_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 Rank Membership Profile visualizes how strongly each student belongs to each latent rank. Unlike class membership, rank membership has an ordinal interpretation. Students with unimodal profiles centered on a single rank are well-classified.
A list of ggplot objects, one for each student. Each plot shows the membership probability across all latent ranks.
plotCMP_gg, plotLRD_gg
library(exametrika)
result <- LRA(J15S500, nrank = 5)
plots <- plotRMP_gg(result)
plots[[1]] # Show RMP for the first student
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.