Advanced techniques

Late-binding aesthetics, identity scales, weights, and pipeline escape hatches.

These examples reach into the layer pipeline itself: binding aesthetics to stat outputs with after-stat, transforming resolved values with after-scale, pulling theme colours with from-theme, and splicing arbitrary closures with stat-manual. They also cover identity scales, per-row weights, factor coercion, and how reference lines interact with axis transforms. Reach for them when the standard mappings cannot express what you need; most plots never will. Every example ships its full source: click View source to copy it.

Back to top