wordwrap(s, width = 20, break.word = FALSE)
strfit(s, width = 20)
width
limit.
s
except that each element has
been wrapped softly or hardly.
keggview.graph
function (when
keggview.native=FALSE). They are equally useful for wrapping long
labels in other types of graphs or output formats.
strwrap
in R base.
long.str="(S)-Methylmalonate semialdehyde"
wr1=wordwrap(long.str, width=15)
#long word intact
cat(wr1, sep="\n")
wr2=strfit(long.str, width=15)
#long word split
cat(wr2, sep="\n")
Run the code above in your browser using DataLab