Documentation

13A.31 Worked example: diagnostic plot pack

The reproducible fixture contains 30 subjects, three dose arms, eight post-dose observations per subject, and one dose record. It includes DV, PRED, IPRED, CWRES, ETA1/ETA2, covariates, and identifiers. The gallery settings derive BMI and log DV, then render 19 named plots covering every geom.

Files:

Observed versus individual predictions

Review sequence

Start with the summary: 270 rows read, 22 columns after two mutations, and 19 plot items. The observed-versus-IPRED plot retains 240 observation rows, uses equal log axes, and overlays a loess smooth and identity line. Next review individual profiles: group is ID while colour is dose, preventing subjects from being joined. Then inspect ETA distributions after item-specific distinct ID, giving 30 rows rather than 270.

The residual facets show how row/column panels and reference lines combine. The histogram, density, ECDF, and Q-Q plots demonstrate different distribution views. Errorbar and pointrange pages show mean±SD versus median/IQR. The tile uses cell means. The final aesthetics plot intentionally maps colour, shape, and size to show capacity and the risk of excessive encoding.

This fixture is deterministic and synthetic. Smooth recovery and tidy distributions do not validate a real fitted model.

Common mistakes

  • Treating the synthetic diagnostic pack as model qualification.
  • Ignoring item row counts.
  • Calling every layered line a subject trajectory.
  • Copying the broad gallery into a production report unchanged.

Checklist

  • Reproduce 19 PNG and 19 SVG files.
  • Reconcile observation and subject-level row counts.
  • Inspect titles, legends, axes, and clipping.
  • Verify mappings and summary functions per item.
  • Retain only decision-relevant production graphics.

Further reading

See plot grammar, all geoms, facets, and validation limits.