Documentation

13.19 Centres, error bars, time bins, and smoothers

Summary graphics compress records into a point, interval, or curve. That compression is useful only when the statistic is named precisely and its assumptions fit the question.

Center and interval choices

Centre

--eda-stat mean gives an arithmetic mean, sensitive to high values. median gives the middle observed value and is robust to tails. geomean summarizes positive values on a multiplicative scale; it is undefined for zero/negative values. Do not choose the statistic solely because its graph looks smoother.

Error bars

sd describes between-value dispersion around a mean; sem describes estimated precision of the mean; ci95 forms a 95% confidence interval; iqr spans quartiles; p90 spans the 5th–95th percentiles; range shows minimum/maximum; none suppresses bars. Geometric mean SD/SEM/CI bars are calculated on the log scale and transformed back.

Bins

time_bins=0 uses distinct times when there are 40 or fewer, otherwise quantile bins. A positive setting requests that many bins (up to 100). Binning changes x positions and membership. Preserve bin rules and n per bin, and prefer nominal time when protocol visits are the intended unit.

Smoothers

Configuration supports loess, linear, power, or none, with LOESS span 0.1–1 (default 0.75). LOESS is local and flexible; linear imposes a straight line; power is a straight relation on log–log axes. None establishes causation or supplies a validated PK model. Sparse edges are especially unstable.

Common mistakes

  • Calling SD or a percentile band a confidence interval.
  • Computing geometric summaries with nonpositive values unnoticed.
  • Changing bins until a desired pattern appears.
  • Extrapolating a smoother beyond observed support.

Checklist

  • Name the centre and bar in every caption.
  • Report n and excluded values.
  • Freeze bin definitions before comparison.
  • Show raw points or distributions when practical.
  • Treat smoothers as exploratory descriptions.

Further reading

See P04–P07, custom smoothing, and numerical reproducibility.