| plot.find_cut | R Documentation |
find_cut ResultProduces a ggplot2 visualisation of the Test Information Function
(TIF) curves for each module, faceted by stage, with vertical lines marking
the selected cut scores (proper TIF crossings) and, optionally, any
anomalous crossings detected by find_cut.
Each stage occupies one panel. Stage 1 (routing module) appears first. Stages with routing decisions show TIF curves for all candidate modules and mark the selected cut score(s) with a solid black vertical line and a theta value label at the crossing point.
## S3 method for class 'find_cut'
plot(
x,
theta_range = NULL,
show_anomalous = TRUE,
label_cuts = TRUE,
layout = c("vertical", "horizontal"),
...
)
x |
An object of class |
theta_range |
A numeric vector of length 2 specifying the theta range
shown on the x-axis. Defaults to the full range stored in
|
show_anomalous |
Logical. If |
label_cuts |
Logical. If |
layout |
Character string controlling the panel arrangement.
|
... |
Currently unused. Reserved for future arguments. |
A ggplot object. The object is printed automatically when
called interactively. It can be further customised with standard
ggplot2 functions such as ggplot2::theme(),
ggplot2::scale_color_manual(), etc.
find_cut, run_mst
## Use the built-in simMST 1-3-3 panel
cut_result <- find_cut(
x = simMST$item_bank,
module = simMST$module,
route_map = simMST$route_map
)
## Default: stages stacked vertically (stage 1 at the top)
plot(cut_result)
## Horizontal layout: stages side by side
plot(cut_result, layout = "horizontal")
## Hide anomalous crossing markers
plot(cut_result, show_anomalous = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.