shortenLabel: Shorten labels for display

View source: R/utils.R

shortenLabelR Documentation

Shorten labels for display

Description

shortenLabel truncates long labels with an ellipsis so they fit inside path diagram boxes.

Usage

shortenLabel(x, n = 16)

Arguments

x

Character vector of labels.

n

Maximum number of characters.


medmod documentation built on July 16, 2026, 9:07 a.m.