plot.grass_result: Plot a grass report

View source: R/plot.R

plot.grass_resultR Documentation

Plot a grass report

Description

The default "landing" plot overlays observed kappa, PABAK, and AC1 on the GRASS prevalence-conditioned reference curves. The "regime" plot places the study on the PI^2 vs BI^2 plane.

Usage

## S3 method for class 'grass_result'
plot(
  x,
  type = c("landing", "regime"),
  labels = c("auto", "inline", "legend"),
  show_medium = FALSE,
  title = NULL,
  subtitle = NULL,
  ...
)

Arguments

x

A grass_result object.

type

Either "landing" (default) or "regime".

labels

Where to identify the three curves: "auto" (default – inline at the right edge unless curves are too close together), "inline", or "legend".

show_medium

If TRUE, also plot the medium-quality reference curves as a faint dotted band. Default FALSE.

title, subtitle

Optional strings to override the default title and subtitle. Pass NULL to omit either.

...

Unused.

Details

Reference curves are the Youden-J-optimal metric values from the GRASS simulation across prevalence, for competent raters (Se, Sp at or above 0.85 for "high" quality; 0.70 for "medium").

Value

A ggplot object.


grassr documentation built on Sept. 22, 2026, 5:08 p.m.