Skip to contents

This function creates a plot of MCQ scores for different metrics (small_k, medium_k, large_k, geomean_k, overall_k). The function handles different logarithmic transformations of the k-values and adjusts the y-axis label accordingly.

Usage

# S3 method for class 'score_mcq_output'
plot(x, ..., xlab = "Metric", alpha = 0.3)

Arguments

x

A data frame returned by the score_mcq function.

...

Additional arguments passed to methods.

xlab

Label for the x-axis. Default is "Metric".

alpha

Transparency of the points in the plot. Default is 0.3.

Value

A ggplot object showing the boxplot of MCQ scores.

Examples

dat21 <- data.frame(subjectid = 1:5, questionid = rep(1:21, 5), response = 1)
plot(score_mcq(dat21, items = 21))