Learn R Programming

fb4package (version 2.0.0)

plot_estimate_panel: Draw a single parameter estimate panel with confidence interval

Description

Internal helper shared by plot_mle_uncertainty, plot_bootstrap_uncertainty, and plot_hierarchical_uncertainty. Draws a dot-and-arrow panel for one parameter — estimate point, CI arrow, and optional CI text — so the identical plotting code is not triplicated.

Usage

plot_estimate_panel(
  estimate,
  ci_lower,
  ci_upper,
  param_name,
  method_label,
  colors,
  add_ci_text
)

Value

NULL (modifies current graphics device).

Arguments

estimate

Point estimate for the parameter.

ci_lower

Lower confidence bound.

ci_upper

Upper confidence bound.

param_name

Character: parameter name, used as axis label and title.

method_label

Character prefix for the panel title (e.g. "MLE").

colors

Color scheme list from get_color_scheme().

add_ci_text

Logical; add CI text above the arrow.