Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.webpower

To plot Statistical Power Curve


Description

This function is used to plot the power curves generated by webpower.

Usage

## S3 method for class 'webpower'
plot(x, xvar = NULL, yvar = NULL, xlab = NULL,
  ylab = NULL, ...)

Arguments

x

Objects of power analysis.

xvar

The variable name used as the x (horizontal) axis. It is not required.

yvar

The variable name used as the y (vertical) axis. It is not required.

xlab

The label for the x axis. It is not required.

ylab

The label for the y axis. It is not required.

...

Extra arguments. It is not required.

Value

The plot.

Examples

res <- wp.correlation(n=50,r=0.3, alternative="two.sided")
plot(res)

WebPower

Basic and Advanced Statistical Power Analysis

v0.5.2
GPL (>= 3)
Authors
Zhiyong Zhang [aut, cre], Yujiao Mai [aut], Miao Yang [ctb]
Initial release
2018-11-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.