| plotScoreFreq_gg | R Documentation |
This function takes exametrika LRAordinal or LRArated output as input and generates a Score Frequency Distribution plot using ggplot2. The plot shows the density distribution of scores with vertical dashed lines indicating the thresholds between adjacent latent ranks.
plotScoreFreq_gg(
data,
title = TRUE,
colors = NULL,
linetype = c("solid", "dashed"),
show_legend = FALSE,
legend_position = "right"
)
data |
An object of class |
title |
Logical or character. If |
colors |
Character vector of length 2. First element is the color
for the density curve, second is the color for the threshold lines.
If |
linetype |
Character or numeric vector of length 2. First element is
the line type for the density curve, second for the threshold lines.
Default is |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The Score Frequency Distribution visualizes how student scores are
distributed and where the boundaries between latent ranks fall.
The threshold between rank i and rank i+1 is calculated as
the midpoint between the maximum score in rank i and the minimum
score in rank i+1.
This plot is useful for understanding how latent ranks correspond to observed score ranges.
A single ggplot object showing the score frequency distribution with rank threshold lines.
plotLRD_gg, plotRMP_gg
library(exametrika)
result <- LRA(J5S1000, nrank = 4)
plot <- plotScoreFreq_gg(result)
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.