Facets, coordinates, and composition

Split data into small multiples, transform coordinates, and compose panels.

Small multiples are the strongest answer to overplotting: one panel per group, shared axes, and the eye does the comparison. facet-wrap and facet-grid handle the splitting, with free scales when panels span very different ranges; keep scales shared whenever the comparison is the point. Coordinate systems clip, fix, flip, or transform the panel itself, and compose arranges several plots with shared legends. Every example ships its full source: click View source to copy it.

Back to top