plot.PSpower {PSpower}R Documentation

Plots PSpower object

Description

Plots PSpower object

Usage

## S3 method for class 'PSpower'
plot(x, power = seq(0.6, 0.99, length.out = 100), ...)

Arguments

x

PSpower object

power

a range of powers to plot the power curve

...

ignored

Value

an object (class ggplot) containing a figure

Examples

obj <- PSpower(tau = 1/sqrt(20), sig.level = 0.05, power = 0.956,
               r = 0.5, phi = 0.99, rho_sq = 0.02)
plot(obj)

[Package PSpower version 0.1.1 Index]