Skip to main content

Module format

Module format 

Source
Expand description

Label formatting functions for scale breaks. Analogous to R’s scales package (comma, percent, dollar, scientific).

Functions§

label_comma
Format with comma separators for thousands (e.g., 1,234,567).
label_dollar
Format as US dollar (e.g., 1234.5 → “$1,235”).
label_percent
Format as percentage (e.g., 0.5 → “50%”).
label_scientific
Format in scientific notation (e.g., 12345 → “1.23e4”).

Type Aliases§

LabelFormatter
A label formatter function type.