| plotScoreRank_gg | R Documentation |
This function takes exametrika LRAordinal or LRArated output as input and generates a Score-Rank heatmap using ggplot2. The heatmap shows the distribution of students across scores (y-axis) and latent ranks (x-axis), with darker cells indicating higher frequency.
plotScoreRank_gg(
data,
title = TRUE,
colors = NULL,
show_legend = TRUE,
legend_position = "right"
)
data |
An object of class |
title |
Logical or character. If |
colors |
Character vector of length 2. Low and high colors for the
gradient. If |
show_legend |
Logical. If |
legend_position |
Character. Position of the legend.
One of |
The Score-Rank heatmap visualizes the joint distribution of observed scores and estimated latent ranks. Each cell represents the number of students with a given score assigned to a given rank. Darker cells indicate higher frequency.
The data is taken from data$ScoreRank, a matrix where rows
represent scores and columns represent latent ranks.
A single ggplot object showing the Score-Rank heatmap.
plotScoreFreq_gg, plotLRD_gg
library(exametrika)
result <- LRA(J5S1000, nrank = 4)
plot <- plotScoreRank_gg(result)
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.