plot.PSpower: Plots PSpower object

View source: R/PSpower.R

plot.PSpowerR 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)

PSpower documentation built on April 4, 2025, 5:17 a.m.