line_wrap | R Documentation |
Useful to wrap labels on several lines. Wrap on word breaks. A factor returs factor.
line_wrap(x, line_lenght = 40)
## Default S3 method:
line_wrap(x, line_lenght = 40)
## S3 method for class 'factor'
line_wrap(x, line_lenght)
x |
A character string or vector. |
line_lenght |
A max row lenght (default = 40). |
ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point() +
ggtitle(line_wrap("This is a unneccessary long example title to show
how line_wrap function works"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.