Plot percent bias across simulation settings
plot_bias_pct.RdPlot percent bias across simulation settings
Usage
plot_bias_pct(
data,
facet_formula,
title = "Percent Bias",
subtitle = "",
linetype_var = NULL,
use_aggregate = FALSE,
x_breaks = NULL,
point_size = 1.5
)Arguments
- data
A data frame containing summary statistics per configuration. Must include columns such as
theta_true,bias_pct, andmethod.- facet_formula
A faceting formula (e.g.
q0_lab ~ q1_lab) specifying how to arrange simulation panels.- title
Plot title.
- subtitle
Plot subtitle.
- linetype_var
Optional name of a column in
datathat controls line type. IfNULL, all lines are solid.- use_aggregate
Logical; whether to use a larger theme suitable for aggregate plots with many legend entries.
- x_breaks
Optional numeric vector of breaks for the x-axis (in
theta_truespace).- point_size
Point size for the scatter overlay.