trunc_labels: Truncate labels

View source: R/labels.R

trunc_labelsR Documentation

Truncate labels

Description

Truncate labels that exceed a specified maximum length.

Usage

trunc_labels(x, max_length = 20)

Arguments

x

A character vector.

max_length

Maximum length, default is 20. The ellipsis "..." is appended to shortened labels.

Value

A character vector with truncated labels.


volker documentation built on April 12, 2025, 9:16 a.m.