Plot fixed-sample-size power results

# S3 method for class 'simpower_curve'
plot(x, target_power = 0.8, display = "all", all = TRUE, endpoint = NULL, ...)

Arguments

x

An object returned by simPower().

target_power

Target power shown as a horizontal reference line. The default is 0.80, unless the object stores a planning target, in which case that target is used when this argument is omitted. An explicit value always overrides the stored target.

display

Character vector of comparator panels to display. Use "all" (the default) to display every comparator, or provide comparator names such as "R_vs_T" to display selected panels.

all

Logical. If TRUE (the default), display only the aggregate All comparators result without a comparator facet. If FALSE, display the current comparator panels selected by display.

endpoint

Endpoint names to display. By default, "Total" is used when all = TRUE, while all retained endpoints are used when all = FALSE. Use "all" to show all retained endpoints explicitly.

...

Unused additional arguments.

Value

A ggplot object showing estimated power and its Monte Carlo confidence interval as a clearly visible vertical line.