format-lower

Lower-case a string break (ASCII letters only).

Usage

format-lower()

Returns

A closure value => string.

Examples

Lower-case the discrete x-axis tick labels via the closure.

#let d = ((g: "ALPHA", y: 4), (g: "BETA", y: 7), (g: "GAMMA", y: 3))
#plot(
  data: d,
  mapping: aes(x: "g", y: "y"),
  layers: (geom-col(),),
  scales: (scale-x-discrete(labels: format-lower()),),
  width: 10cm,
  height: 6cm,
)

Bar chart of three groups with discrete x-axis tick labels lower-cased to alpha, beta, gamma via format-lower.

Bar chart of three groups with discrete x-axis tick labels lower-cased to alpha, beta, gamma via format-lower.

See also

format-upper, format-title.

Back to top