Function to plot the results of the power curve calculation
Source:R/plot_power_curve.R
plot_power_curve.Rd
The function plots the power curve based on the results
of the ssp_power_curve
function or the ssp_bf_predetermined
function.
Examples
if (FALSE) { # \dontrun{
# Determine the sample sizes for each delta
curve_data <- SampleSizePlanner::ssp_power_curve(
tpr = 0.8,
delta = seq(0.1, 0.9, 0.01),
max_n = 5000)
# Plot the power curve
SampleSizePlanner::plot_power_curve(delta = curve_data$delta, n1 = curve_data$n1, animated = FALSE)
} # }