This function produces a canned ggplot object.

plot_p_d_item(
  pass,
  item_var = "item",
  items = NULL,
  x_var = "d",
  model_name = "",
  xlim = c(0, 100),
  xbreaks = seq(xlim[1], xlim[2], diff(xlim)/10),
  ...
)

Arguments

pass

A data.frame with emperical probabilities per item per month, with expected columns item, cohort, agegp, p, a, n, equate and label.

item_var

Only relevant for long shape. Character string with the name of the column containing item names. The default is item_var = "item".

items

Character vector with item names. If not specified, all columns in the data are included as items (for wide shape) or all items in the item column are included (for long shape).

x_var

Variable representing the continuous x-axis (e.g., age in months, or D-score).

model_name

A string with the model name, used in the plot title.

xlim

Numeric vector of length 2 specifying x-axis limits (in months). Defaults to c(0, 80).

xbreaks

Sequence of breaks for the x-axis.

...

Additional parameters passed down to plot_p_a_one_item().

Value

List of ggplot objects