Learn R Programming

PSpower (version 0.1.1)

plot.PSpower: Plots PSpower object

Description

Plots PSpower object

Usage

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

Value

an object (class ggplot) containing a figure

Arguments

x

PSpower object

power

a range of powers to plot the power curve

...

ignored

Examples

Run this code
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)

Run the code above in your browser using DataLab