View source: R/simpower_methods.R
| plot.countss | R Documentation |
Plot count-outcome sample-size results
## S3 method for class 'countss'
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 the simulated power curve over the
evaluated candidate sample sizes, with the selected sample size highlighted.
Confidence intervals are shown as clearly visible vertical lines through
each point.
If an older countss object has no search history, the plot falls back to
the selected-sample-size point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.