Skip to contents

Draws either the original one-index item plot or a correspondence-distinctiveness evidence map. The Psa item plot draws each item's interval and a dashed mark at the share of judges the exact test needs for that item, so an item is retained when its point reaches its mark. The map places Psa on the x-axis and Csv on the y-axis so that intended-construct correspondence and distinctiveness can be inspected together. Target-scale means are added as triangles when available. Colquitt benchmark bands are deliberately not drawn across item points because those norms were developed for scale-level averages rather than individual items.

The key sits above the data, in as many rows as the figure's width needs. Where a vertical axis title would not fit the figure's height, the axis shows the index's name alone (Psa or Csv) and the key's heading gives the full definition. The item plot widens its bottom margin for long item names, shortening a name in the middle with "..." when it would take more than about 40% of the figure's height.

Usage

# S3 method for class 'contentvalid_sort'
plot(
  x,
  metric = c("psa", "csv"),
  type = c("item", "map"),
  label = c("review", "all", "none"),
  show_legend = TRUE,
  ...
)

Arguments

x

A contentvalid_sort object.

metric

Either "psa" or "csv" for type = "item".

type

Either "item" for the original one-index plot or "map" for the correspondence-distinctiveness evidence map.

label

Which item labels to draw on the map: "review" (default), "all", or "none".

show_legend

Logical; draw the compact plot key. Default TRUE.

...

Additional graphical arguments passed to graphics::plot().

Value

The input object invisibly.

Examples

sort_dat <- data.frame(
  item = rep(c("A1", "A2", "A3"), each = 20),
  rater = rep(1:20, 3),
  target_construct = "A",
  assigned_construct = c(
    rep("A", 18), rep("B", 2),
    rep("A", 16), rep("B", 4),
    rep("A", 12), rep("B", 8)
  )
)
fit <- sort_validity(sort_dat)
plot(fit)

plot(fit, type = "map")