View source: R/plot.pbayesdecisionprob1cont.R
| plot.pbayesdecisionprob1cont | R Documentation |
Displays an operating characteristics curve of Go/NoGo/Gray decision
probabilities against the true treatment effect for continuous endpoint
results returned by pbayesdecisionprob1cont.
## S3 method for class 'pbayesdecisionprob1cont'
plot(
x,
title = NULL,
xlab = NULL,
col_go = "#658D1B",
col_nogo = "#D91E49",
col_gray = "#939597",
base_size = 28,
...
)
x |
An object of class |
title |
A character string for the plot title. Defaults to
|
xlab |
A character string or expression for the x-axis label.
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 |
col_gray |
A character string specifying the colour for the Gray 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). |
For design = 'controlled' or design = 'external', the
x-axis represents the treatment-minus-control difference
\theta = \mu_t - \bar{\mu}_c, where \bar{\mu}_c is the mean
of the supplied mu_c values. For design = 'uncontrolled',
the x-axis represents \mu_t directly.
Vertical reference lines are drawn at the decision thresholds:
When prob = 'posterior': lines at \theta_{TV} and
\theta_{MAV} (converted to the x-axis scale).
When prob = 'predictive': a single line at \theta_{NULL}.
Invisibly returns a ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.