Skip to contents

Format long labels to fit in plots by wrapping and truncating.

Usage

format_label(label, max_length = 14, max_lines = 3)

Arguments

label

Character string to format.

max_length

Maximum length per line. Default is 14.

max_lines

Maximum number of lines. Default is 3.

Value

Formatted string with newlines.