Report the Responses
This function produces a graphic with the responses given by one or a few subjects and shows the correct ones.
report(obj, columns, whichid, grid = TRUE, main = "", las = 0, itemlab = NULL, weights = FALSE)
obj |
An object containing the data imported by function |
columns |
A vector containing which columns to use. Columns can be specified by name or number. |
whichid |
A vector containing the values of variable |
grid |
logical; if |
main |
an overall title for the plot. |
las |
numeric in 0,1,2,3; the style of axis labels (see |
itemlab |
labels of the items. |
weights |
logical. If |
Correct responses are colored green, wrong responses are colored red.
Michela Battauz
data(test) data(key) data(weights) data(weights_multiple) testk <- addkey(test, keydata = key) testw <- addweights(testk, weightsdata = weights) testwm <- addweights(test, weightsdata = weights_multiple) par(mfrow = c(1, 2)) report(obj = testk, col = 2:11, whichid = c("102344", "245784")) report(obj = testw, col = 2:11, whichid = c("102344", "245784"), weights = TRUE) par(mfrow = c(1, 1)) report(obj = testwm, col = 2:11, whichid = c("102344", "245784"), weights = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.