Description Usage Arguments Details Value Author(s) References See Also Examples
Add the new line character \n
within a character string.
1 2 | wrap.labels(x, len)
wrap.it(x, len)
|
x |
A string or a character vector. |
len |
numeric, similar to the |
This function is usefull to wrap long labels meant to be used within a plot.
A character vector
Marc Schwartz
Schawrtz, Marc. [R] abbrevate or wrap dimname labels. R-help mailing list. April, 2005. https://stat.ethz.ch/pipermail/r-help/2005-april/069566.html
1 2 | occ <- c("Upper nonmanual", "Lower nonmanual", "Upper manual", "Lower manual", "Farm")
wrap.labels(occ, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.