View source: R/plot.getgamma2bin.R
| plot.getgamma2bin | R Documentation |
Displays calibration curves of marginal Go and NoGo probabilities against
the threshold grid \gamma for results returned by
getgamma2bin.
## S3 method for class 'getgamma2bin'
plot(
x,
title = NULL,
col_go = "#658D1B",
col_nogo = "#D91E49",
base_size = 28,
...
)
x |
An object of class |
title |
A character string for the plot title. Defaults to
|
col_go |
A character string specifying the colour for the Go curve.
Default is |
col_nogo |
A character string specifying the colour for the NoGo curve.
Default is |
base_size |
A positive numeric scalar specifying the base font size
(in points) passed to |
... |
Further arguments passed to or from other methods (ignored). |
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.
Invisibly returns a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.