triangle_string | R Documentation |
Turn strings into triangle-shaped strings
triangle_string(string, maxlen = 1, step = 1, display = FALSE)
string |
(character) Some text to reshape into a triangle. |
maxlen |
(integer) Width of top of triangle. Defaults to 1. Set larger than 1 for downward-pointing triangle. |
step |
(integer) Number of characters to expand or contract triangle width per line (set to negative for downward-pointing triangle) |
display |
(logical) Returns string invisibly if FALSE (default), set to TRUE to display returned string |
Use positive step argument for upward pointing triangle and negative step and wider maxlen for downward pointing triangle.
A string
triangle_string("hellooooooooooooooooooooooooooooooooooooooooooooooooooo world") %>% multi_color()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.