plot.power.htest: Plot diagram of sample size vs. test power
Description
Plot a diagram to illustrate the relationship of sample size and test power for a given set of parameters.
Usage
"plot"(x, ...)
Arguments
x
object of class power.htest usually created by one of the power calculation functions, e.g., pwr.t.test()
...
Arguments to be passed to ggplot including xlab and ylab
Value
These functions are invoked for their side effect of drawing on the active graphics device.
Details
Power calculations for the following tests are supported: t-test (pwr.t.test(), pwr.t2n.test()), chi squared test (pwr.chisq.test()), one-way ANOVA (pwr.anova.test(), standardnormal distribution (pwr.norm.test()), pearson correlation (pwr.r.test()), proportions (pwr.p.test(), pwr.2p.test(), pwr.2p2n.test()))