trunc_labels: Truncate labels
Description
Truncate labels that exceed a specified maximum length.
Usage
trunc_labels(x, max_length = 20)
Value
A character vector with truncated labels.
Arguments
- x
A character vector.
- max_length
Maximum length, default is 20. The ellipsis "..." is appended to shortened labels.