plot_power: This function draws the power graph, with curves sorted by...

View source: R/plot_power.R

plot_powerR Documentation

This function draws the power graph, with curves sorted by the mean power and smoothed for easier reading.

Description

This function draws the power graph, with curves sorted by the mean power and smoothed for easier reading.

Usage

plot_power(pwr, xname = " ", title, Smooth = TRUE, span = 0.75)

Arguments

pwr

a matrix of power values, usually from gof_power or hybrid_power

xname

Name of variable on x axis

title

(Optional) title of graph

Smooth

=TRUE lines are smoothed for easier reading. Smoothing needs enough alternatives; with fewer than 10 values of the parameter the powers are joined by straight lines instead.

span

=0.75 span of the loess smoother (as a fraction of the points)

Value

plt, an object of class ggplot.


Rgof documentation built on Nov. 21, 2026, 5:06 p.m.