Heatmap of assurance for a chosen metric across two selected effect grid variables and sample sizes.
plot_power_heatmap(
power_results,
power_metric = c("direction", "threshold", "rope"),
x_effect = NULL,
y_effect = "n",
facet_by = NULL,
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 plot labels.