Plot the power between two groups as the number of participants and the relative risk vary.
# S3 method for 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, ... )
An object of class power.calc.
Colour of the line.
Line width.
Line type.
Title for the y-axis.
The x position of the legend. If not given, tries to default to a sensible value.
The y position of the legend. If not given, tries to default to a sensible value.
Title for the legend.
Size of the legend.
Add a horizontal dotted line at a target power. A value of NA suppresses plotting.
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 plot function.
Rebecca Mangan and Jason Wyse