Learn R Programming

optiRum (version 0.35)

wordwrap: Produce a string with one word per line Designed for splitting strings to fit better on axis on charts

Description

Produce a string with one word per line Designed for splitting strings to fit better on axis on charts

Usage

wordwrap(x, ...)

Arguments

x
string
...
Allows additional parameters to be passed to gsub

See Also

Other helper: CJ.dt; convertToXML; generatePDF; sanitise

Examples

Run this code
library('ggplot2')
ggplot(data.frame(x=1:10,y=1:10),aes(x,y))+theme_optimum()+geom_line()

Run the code above in your browser using DataLab