Documentation

13A.20 Scales, limits, reference lines, and coordinates

--x-scale and --y-scale accept linear or log. Log scales are useful for multiplicative PK variation but cannot display nonpositive values. Filtering to positive data must be scientifically justified and recorded; silently omitting zeros changes the population displayed.

--xlim 0,100 and --ylim ,50 set closed or open-ended limits. Limits can hide observations; they do not remove those rows from table outputs or underlying calculations unless the implementation's layer statistic requires visible values. Review summary notes and source ranges before publication.

Reference controls are --hline, --vline, and --abline intercept,slope. Multiple intercept/slope pairs create multiple lines. --identity draws y=x, especially useful with --equal-axes for observed-versus-predicted plots. A reference line is a visual aid, not evidence that points were generated under that relationship.

--flip swaps axes, improving long category labels. --x-angle rotates labels. equal-axes gives the same numeric range to x and y, but does not change units; equal axes are meaningful only when quantities have compatible dimensions.

Axis limits and filters are different operations. A filter changes which rows enter statistics and every downstream layer; a visual limit changes the displayed coordinate range. Record which mechanism you used. When investigating an outlier, first show the full range, then create a clearly labelled zoom rather than replacing the complete view.

Log axes also change visual distance: equal ratios occupy equal space. This is appropriate for multiplicative error but can make small absolute differences at low concentrations look prominent. Include units and explain the reason for the transformation in captions intended for novice readers.

Common mistakes

  • Using a log axis with zeros and not reporting omissions.
  • Cropping inconvenient observations with axis limits.
  • Drawing y=x for variables in different units.
  • Treating ±2 residual lines as formal acceptance boundaries.

Checklist

  • Confirm positivity before log scaling.
  • Compare displayed limits with complete data ranges.
  • Match units before identity/equal-axis comparisons.
  • Explain every reference line.
  • Check labels after flip or rotation.

Further reading

See first diagnostic, smooth interpretation, facets, and validation.