Scales

Functions

  • colour-mix - Blend two colours.
  • expand-limits - Ensure the trained domain includes the supplied values without replacing it.
  • scales - Bind scale specifications to aesthetics.

Breaks

Colour and fill scales

Generic scales

  • scale-binned - Binned scale that quantises a continuous variable into n-breaks bins.
  • scale-continuous - Continuous scale for any continuous aesthetic.
  • scale-discrete - Discrete scale for any categorical aesthetic.
  • scale-identity - Identity scale: use each row’s value as the visual output directly.
  • scale-manual - Manual discrete scale: supply a per-level array of output values.

Palettes

  • brewer-palette - Look up a ColorBrewer palette by name.
  • okabe-ito - Okabe-Ito colour-vision-deficiency-safe qualitative palette.

Position scales

  • scale-date - Temporal position scale formatting axis labels as dates (x or y).
  • scale-datetime - Temporal position scale formatting axis labels as datetimes (x or y).
  • scale-log10 - Position scale on a base-10 log axis (x or y).
  • scale-reverse - Position scale with the axis direction reversed (x or y).
  • scale-sqrt - Position scale on a square-root axis (x or y).
  • scale-time - Temporal position scale formatting axis labels as times (x or y).

Secondary axes

  • dup-axis - Duplicate the primary axis on the opposite side of the panel.
  • sec-axis - Secondary axis derived from the primary through a transformation.

Size scales

Back to top