jcc.plot {jrt} | R Documentation |
Plot the category curves for a judge.
Description
This function returns the Judge Category Curves (JCC) plot from a jrt
object and the judge number. This is a wrapper function and adaptation of the itemplot
function in the package mirt
(Chalmers, 2012). It also uses the plotting functions of the packages directlabels
and ggplot2
.
Usage
jcc.plot(
jrt.object,
judge = "all",
labelled = T,
greyscale = F,
vertical.labels = F,
title = "auto",
column.names = "auto",
manual.facet.names = "auto",
manual.line.names = "auto",
overlay.reliability = F,
color.palette = "D3",
category.name.for.legend = "",
name.for.reliability = "auto",
theta.span = 3.5,
line.width = 0.8,
line.opacity = 1,
key.width = 3,
legend.position = "right",
legend.columns = "",
theme = "bw",
text.size = 10,
title.size = text.size + 4,
font.family = "sans",
remove.gridlines = T,
facet.rows = NULL,
facet.cols = NULL,
facet.title.position = "top",
precision = 20,
debug = F,
mirt.object.input = F,
item = NULL
)
Arguments
jrt.object |
A object of the |
judge |
A numerical to indicate which judge(s) to plot. Default is |
labelled |
A logical to indicate whether the curves should be labelled with boxed labels ( |
greyscale |
A logical to indicate whether to plot in greyscale ( |
vertical.labels |
A logical to indicate whether the labels should be vertically oriented ( |
title |
A character title for the plot. By default it is created automatically based on the judge number. |
column.names |
A character to indicate what a column corresponds to (Defaults to |
manual.facet.names |
A vector to indicate the names to give to the different facets. Defaults to |
manual.line.names |
A vector to indicate the individual names to give to the different response categories (or different category curves). Defaults to |
overlay.reliability |
A logical to indicate whether to overlay the reliability function of the item (default is |
color.palette |
A character value to indicate the colour palette to use. Defaults to |
category.name.for.legend |
A character to indicate how to call categories in the legend. Default to |
name.for.reliability |
A character to indicate a preferred name for reliability in the legend or labels. Defaults to |
theta.span |
A numeric indicating the maximum |
line.width |
A numeric indicating the width of the trace lines (default is |
line.opacity |
A numeric vector to indicate opacities for the different category lines. Defaults to |
key.width |
A numeric to indicate the width of the legend key (default is |
legend.position |
A character string or vector of coordinates to position the legend key. Defaults to |
legend.columns |
A numeric to indicate after how many legend key elements to add a line break. Especially useful if using |
theme |
A character value to indicate the background color theme used by |
text.size |
A numeric value to control the size of the text on the plot. |
title.size |
A numeric value to control the size of the plot title (defaults to |
font.family |
A character value to control the font family used on the graph. Defaults to |
remove.gridlines |
A logical value to remove the gridlines (default is |
facet.rows |
A numeric to change the number of rows for faceted plots. Use this one or |
facet.cols |
A numeric to change the number of columns for faceted plots. Use this one or |
facet.title.position |
A character string to indicate the position of the facet titles for faceted plts. Defaults to |
precision |
A numeric to indicate the degree of precision used to plot the category curves. Higher values will increase the accuracy of the graph and make the curves look smoother, but the data generated to plot the graph will be bigger, which will slow down the function. Lower values will do the opposite. Values between |
debug |
A logical to report debug messages (used in development).
Defaults to |
mirt.object.input |
A logical allowing to input directly an |
item |
For convenience, this argument, more standard to IRT packages, can be used instead of the |
Value
A plot of the category curves.
References
Chalmers, R., P. (2012). mirt: A Multidimensional Item Response Theory Package for the R Environment. Journal of Statistical Software, 48(6), 1-29. doi:10.18637/jss.v048.i06
Myszkowski, N., & Storme, M. (2019). Judge Response Theory? A call to upgrade our psychometrical account of creativity judgments. Psychology of Aesthetics, Creativity and the Arts, 13(2), 167-175. doi:10.1037/aca0000225
Myszkowski, N. (2021). Development of the R library “jrt”: Automated item response theory procedures for judgment data and their application with the consensual assessment techniques. Psychology of Aesthetics, Creativity and the Arts, 15(3), 426-438. doi:10.1037/aca0000287
Examples
# Load dataset
data <- jrt::ratings
# Fit model
fit <- jrt(data, irt.model = "PCM")
# JCC of the first judge
jcc.plot(fit, 1)
# See vignette for more options