Draw a filled contour plot of assurance for a chosen metric, as a function of two effect grid columns and sample size.
plot_power_contour(
power_results,
power_metric = c("direction", "threshold", "rope"),
x_effect = NULL,
y_effect = "n",
facet_by = NULL,
power_threshold = 0.8,
show_threshold_line = TRUE,
title = NULL,
subtitle = NULL
)A ggplot object.
Output from a brms_inla_power function.
Which metric to plot: "direction", "threshold", or "rope".
Name of effect grid column for x-axis (default = first effect).
Name of effect grid column for y-axis (default = "n").
Optional effect grid column(s) to facet by.
Optional contour line for assurance (default 0.8).
Logical; add a red contour at power_threshold.
Optional plot labels.