Skip to contents

Plot mean confidence interval width across simulation settings

Usage

plot_ci_width(
  data,
  facet_formula,
  title = "CI Width",
  subtitle = "",
  linetype_var = NULL,
  use_aggregate = FALSE,
  x_breaks = NULL,
  point_size = 1.5,
  y_limits = NULL
)

Arguments

data

A data frame containing summary statistics per configuration. Must include columns such as theta_true, ci_width, and method.

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 data that controls line type. If NULL, 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_true space).

point_size

Point size for the scatter overlay.

y_limits

Optional numeric vector of length 2 giving y-axis limits.

Value

A ggplot object showing mean confidence interval width as a function of theta_true.