View source: R/plotting-decision.R
| plot_decision_threshold_contour | R Documentation |
Shows conditional Bayesian power as a function of decision threshold p* and one effect grid column, optionally faceted.
plot_decision_threshold_contour(
power_results,
metric = c("direction", "threshold", "rope"),
p_star_grid = seq(0.5, 0.99, by = 0.01),
effect_var = NULL,
facet_by = NULL,
effect_value = NULL,
effect_weights = NULL,
title = NULL,
subtitle = NULL
)
power_results |
brms_inla_power list (or two-stage, etc.) |
metric |
Which metric: "direction", "threshold", "rope" |
p_star_grid |
Numeric vector of decision thresholds (default: 0.5 to 0.99 by 0.01) |
effect_var |
Name of effect grid column for y-axis (default: first detected grid column) |
facet_by |
Optional effect grid column(s) to facet by |
effect_value |
Optional value(s) to filter for effect_var, or named list for multi-filter |
effect_weights |
Optional weights for aggregation (named by effect_var values) |
title, subtitle |
Optional plot labels. |
ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.