scale-fill-okabe-ito

Discrete Okabe-Ito colour-vision-deficiency-safe fill scale.

Fill counterpart of scale-colour-okabe-ito. Also the library default for unmapped discrete fill aesthetics.

Usage

scale-fill-okabe-ito(
  ..args,
)

Parameters

Parameter Default Description
..args

Returns

Scale object consumed by plot.

Examples

Categorical bars filled with the Okabe-Ito palette.

#let d = (
  (grp: "a", y: 1),
  (grp: "b", y: 2),
  (grp: "c", y: 3),
)
#plot(
  data: d,
  mapping: aes(x: "grp", y: "y", fill: "grp"),
  layers: (geom-col(),),
  scales: (scale-fill-okabe-ito(),),
  width: 10cm,
  height: 6cm,
)

Bar chart of three bars a, b, c filled with the first three colour-vision-deficiency-safe Okabe-Ito fills.

Bar chart of three bars a, b, c filled with the first three colour-vision-deficiency-safe Okabe-Ito fills.

See also

scale-colour-okabe-ito, scale-fill-brewer, scale-fill-discrete.

Back to top