Learn R Programming

TestDesign (version 0.2.5)

plotShadow: Draw a shadow test chart

Description

Draw a chart of shadow tests constructed for each simulee. The index of a column represents the position of item administration process, and each column represents the item pool.

Usage

plotShadow(object, constraints, examinee_id = 1,
  sort_by_difficulty = FALSE, file_pdf = NULL, ...)

# S4 method for list plotShadow(object, constraints, examinee_id = 1, sort_by_difficulty = FALSE, file_pdf = NULL, ...)

# S4 method for output_Shadow plotShadow(object, constraints, examinee_id = 1, sort_by_difficulty = FALSE, file_pdf = NULL, ...)

Arguments

object

An output from Shadow function.

constraints

The constraint object used in obtaining the output.

examinee_id

Numeric ID of the examinee to draw the plot.

sort_by_difficulty

Sort the items by difficulty.

file_pdf

If supplied a filename, save as a PDF file.

...

Additional options to be passed on to pdf().

Examples

Run this code
# NOT RUN {
object <- itempool_science
config <- createShadowTestConfig()
true_theta <- rnorm(1)
solution <- Shadow(itempool_science, config, true_theta, constraints_science)
plotShadow(solution, constraints_science, 1)

# }

Run the code above in your browser using DataLab