plot.rater_fit {rater} | R Documentation |
Plot a rater_fit
object
Description
Plot a rater_fit
object
Usage
## S3 method for class 'rater_fit'
plot(
x,
pars = "theta",
prob = 0.9,
rater_index = NULL,
item_index = NULL,
theta_plot_type = "matrix",
...
)
Arguments
x |
An object of class |
pars |
A length one character vector specifying the parameter to plot.
By default |
prob |
The coverage of the credible intervals shown in the |
rater_index |
The indexes of the raters shown in the |
item_index |
The indexes of the items shown in the class probabilities
plot. If not plotting the class probabilities this argument will be
ignored. By default |
theta_plot_type |
The type of plot of the "theta" parameter. Can be
either |
... |
Other arguments. |
Details
The use of pars
to refer to only one parameter is for backwards
compatibility and consistency with the rest of the interface.
Value
A ggplot2 object.
Examples
fit <- rater(anesthesia, "dawid_skene")
# By default will just plot the theta plot
plot(fit)
# Select which parameter to plot.
plot(fit, pars = "pi")
# Plot the theta parameter for rater 1, showing uncertainty.
plot(fit, pars = "theta", theta_plot_type = "points", rater_index = 1)