Learn R Programming

TestDesign (version 1.0.2)

plotInfo: Draw item information plots

Description

Draw item information plots.

Usage

plotInfo(
  object,
  theta = seq(-3, 3, 0.1),
  info_type = "FISHER",
  plot_sum = TRUE,
  select = NULL,
  color = "blue",
  file_pdf = NULL,
  width = 7,
  height = 6,
  mfrow = c(2, 4)
)

# S4 method for list plotInfo( object, theta = seq(-3, 3, 0.1), info_type = "FISHER", plot_sum = TRUE, select = NULL, color = "blue", file_pdf = NULL, width = 7, height = 6, mfrow = c(2, 4) )

# S4 method for item_pool plotInfo( object, theta = seq(-3, 3, 0.1), info_type = "FISHER", plot_sum = TRUE, select = NULL, color = "blue", file_pdf = NULL, width = 7, height = 6, mfrow = c(1, 1) )

# S4 method for constraints plotInfo( object, theta = seq(-3, 3, 0.1), info_type = "FISHER", plot_sum = TRUE, select = NULL, color = "black", file_pdf = NULL, width = 7, height = 6, mfrow = c(1, 1) )

Arguments

object

An '>item_pool object to draw pool-level or item-level information, or a list from Static to draw test-level information.

theta

Theta values for drawing the curve. Default is seq(-3, 3, .1).

info_type

Type of information. Currently only accepts FISHER (default).

plot_sum

When 'object' is an '>item_pool object, if TRUE then draw pool-level information, and if FALSE draw item-level information for every item in the pool.

select

A vector of indices identifying the items to subset, for when 'object' is an '>item_pool object.

color

The color of the curve.

file_pdf

If supplied a filename, save as a PDF file.

width

Width of graphics device.

height

Width of graphics device.

mfrow

Multipanel configurations as c(nrow, ncol).

Examples

Run this code
# NOT RUN {
subitempool <- subsetItemPool(itempool_science, 1:8)
plotInfo(subitempool)

config <- createStaticTestConfig()
solution <- Static(config, constraints_science)
plotInfo(solution)

# }

Run the code above in your browser using DataLab