View source: R/plot.power.calc.R
plot.power.calc | R Documentation |
Plot the power between two groups as the number of participants and the relative risk vary.
## S3 method for class 'power.calc'
plot( x, col = "hotpink", lwd = 1.5, lty = 1, ylab = NULL,
x.legend = NULL, y.legend = NULL, main.legend = "Risk scaling", legend.size = 1,
target.power = NA, which = 1L, ... )
x |
An object of class |
col |
Colour of the line. |
lwd |
Line width. |
lty |
Line type. |
ylab |
Title for the y-axis. |
x.legend |
The x position of the legend. If not given, tries to default to a sensible value. |
y.legend |
The y position of the legend. If not given, tries to default to a sensible value. |
main.legend |
Title for the legend. |
legend.size |
Size of the legend. |
target.power |
Add a horizontal dotted line at a target power. A value of |
which |
Type of plot. Value 1 gives a plot of power, and value 2 plot of estimated effect size. |
... |
Additional arguments to be passed to the |
Rebecca Mangan and Jason Wyse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.