View source: R/simpower_methods.R
| plot.simpower_curve | R Documentation |
Plot fixed-sample-size power results
## S3 method for class 'simpower_curve'
plot(x, target_power = 0.8, display = "all", all = TRUE, endpoint = NULL, ...)
x |
An object returned by |
target_power |
Target power shown as a horizontal reference line. The default is 0.80, unless the object stores a planning target, in which case that target is used when this argument is omitted. An explicit value always overrides the stored target. |
display |
Character vector of comparator panels to display. Use
|
all |
Logical. If |
endpoint |
Endpoint names to display. By default, |
... |
Unused additional arguments. |
A ggplot object showing estimated power and its Monte Carlo
confidence interval as a clearly visible vertical line.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.