Learn R Programming

TestDesign (version 1.1.3)

plotShadow: (deprecated) Plot a shadow test chart

Description

(deprecated) Use plot with type = 'shadow' instead.

Usage

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

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

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

Arguments

object

An output from Shadow function.

examinee_id

Numeric ID of the examinee to draw the plot.

sort_by_difficulty

Sort the items by difficulty. (not implemented)

file_pdf

If supplied a filename, save as a PDF file.

simple

If TRUE, simplity the chart by hiding unused items.

...

Additional options to be passed on to pdf().

Examples

Run this code
# NOT RUN {
config <- createShadowTestConfig()
true_theta <- rnorm(1)
solution <- Shadow(config, constraints_science, true_theta)
plotShadow(solution, 1)
plotShadow(solution, 1, simple = TRUE)
# }

Run the code above in your browser using DataLab