autoFormatLongLabels | R Documentation |
Format long labels for html by truncating and wrapping
autoFormatLongLabels(
x,
wordwrap = FALSE,
n = 21,
truncate = FALSE,
remove.empty = TRUE
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.