| plotLRD_gg | R Documentation |
This function takes exametrika output as input and generates a Latent Rank Distribution (LRD) plot using ggplot2. LRD shows the number of students in each latent rank and the rank membership distribution.
plotLRD_gg(
data,
Num_Students = TRUE,
title = TRUE,
colors = NULL,
linetype = "dashed",
show_legend = FALSE,
legend_position = "right"
)
data |
An object of class |
Num_Students |
Logical. If |
title |
Logical or character. If |
colors |
Character vector of length 2. First element is the bar fill
color, second is the line/point color. If |
linetype |
Character or numeric specifying the line type for the
frequency line. Default is |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The Latent Rank Distribution shows how students are distributed across latent ranks. Unlike latent classes, ranks have an ordinal interpretation where higher ranks indicate higher ability levels.
A single ggplot object with dual y-axes showing both the student count and membership frequency.
plotLCD_gg, plotTRP_gg
library(exametrika)
result <- LRA(J15S500, nrank = 5)
plot <- plotLRD_gg(result)
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.