wrap_text | R Documentation |
Wrap text in visualizations according to a preset character
threshold. The next space in the string is replaced with \n
, which will
render as next line in plots and messages.
wrap_text(x, threshold = 15)
x |
String to wrap text |
threshold |
Numeric, defaults to 15. Number of character units by which
the next space would be replaced with |
String output representing a processed version of x
, with spaces replaced
by \n.
wrapped <- wrap_text(
"The total entropy of an isolated system can never decrease."
)
message(wrapped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.