Skip to contents

Displays calibration curves of marginal Go and NoGo probabilities against the threshold grid \(\gamma\) for results returned by getgamma1bin.

Usage

# S3 method for class 'getgamma1bin'
plot(
  x,
  title = NULL,
  col_go = "#658D1B",
  col_nogo = "#D91E49",
  base_size = 28,
  ...
)

Arguments

x

An object of class getgamma1bin.

title

A character string for the plot title. Defaults to NULL (no title displayed).

col_go

A character string specifying the colour for the Go curve. Default is "#658D1B".

col_nogo

A character string specifying the colour for the NoGo curve. Default is "#D91E49".

base_size

A positive numeric scalar specifying the base font size (in points) passed to theme_bw(). Default is 28.

...

Further arguments passed to or from other methods (ignored).

Value

Invisibly returns a ggplot object.

Details

The x-axis represents candidate threshold values \(\gamma \in (0, 1)\). The y-axis represents the marginal probability:

  • Go curve: \(\Pr(g_{\mathrm{Go}} \ge \gamma)\) evaluated under the Go-calibration scenario (typically the Null scenario).

  • NoGo curve: \(\Pr(g_{\mathrm{NoGo}} \ge \gamma)\) evaluated under the NoGo-calibration scenario (typically the Alternative scenario).

Horizontal reference lines are drawn at target_go and target_nogo. Filled circles (geom_point) mark the optimal thresholds \((\gamma_{\mathrm{go}},\, \Pr(\mathrm{Go})_{\mathrm{opt}})\) and \((\gamma_{\mathrm{nogo}},\, \Pr(\mathrm{NoGo})_{\mathrm{opt}})\), with their values shown in the legend. If either optimal threshold is NA, the corresponding point is omitted.