autoFormatLongLabels: Format long labels for html by truncating and wrapping

View source: R/chartutils.R

autoFormatLongLabelsR Documentation

Format long labels for html by truncating and wrapping

Description

Format long labels for html by truncating and wrapping

Usage

autoFormatLongLabels(
  x,
  wordwrap = FALSE,
  n = 21,
  truncate = FALSE,
  remove.empty = TRUE
)

Arguments

x

Character; the text to format.

wordwrap

Logical; whether line breaks ('<br>') should be inserted.

n

Integer; the maximum number of characters before a line breaks is added. The break is added at the nearest word boundary.

truncate

Logical; whether long labels should be truncated and appended with '...' instead.

remove.empty

Logical; whether to remove zero-length strings


NumbersInternational/flipStandardCharts documentation built on Feb. 26, 2024, 5:43 a.m.