report: Report the Responses

Description Usage Arguments Details Author(s) See Also Examples

View source: R/fsia.r

Description

This function produces a graphic with the responses given by one or a few persons and shows the correct ones.

Usage

1
2
report(obj, columns, whichid, grid = TRUE, main = "", las = 0, itemlab = NULL, 
  weights = FALSE)

Arguments

obj

An object containing the data imported by function read.formscanner, the key added by function addkey and/or weights added by function addweights.

columns

A vector containing which columns to use. Columns can be specified by name or number.

whichid

A vector containing the values of variable id that are shown on the graph.

grid

logical; if TRUE horizontal lines are drown on the graph.

main

an overall title for the plot.

las

numeric in 0,1,2,3; the style of axis labels (see par).

itemlab

labels of the items.

weights

logical. If TRUE the weights are displayed.

Details

Correct responses are colored green, wrong responses are colored red.

Author(s)

Michela Battauz

See Also

read.formscanner

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

fsia documentation built on May 29, 2017, 10:52 p.m.

Search within the fsia package
Search all R packages, documentation and source code