scale-hue

Discrete evenly-spaced HCL hue colour/fill scale.

Usage

scale-hue(
  ..args,
)

Parameters

Parameter Default Description
..args Named arguments forwarded to the colour/fill scale (e.g. hue, chroma, luminance, name, limits, labels).

Returns

Deferred scale spec consumed by scales.

Examples

Colour groups with evenly-spaced HCL hues.

#let d = ((x: 1, y: 1, g: "a"), (x: 2, y: 2, g: "b"), (x: 3, y: 3, g: "c"))
#plot(
  data: d,
  mapping: aes(x: "x", y: "y", colour: "g"),
  layers: (geom-point(size: 3pt),),
  scales: scales(colour: scale-hue()),
  width: 10cm,
  height: 6cm,
)

Scatter chart of three points coloured by group with evenly spaced HCL hues.

Scatter chart of three points coloured by group with evenly spaced HCL hues.

See also

scales, scale-brewer.

Back to top