[R] Text wrap

Filoche pmassicotte at hotmail.com
Tue Aug 16 17:39:06 CEST 2011


Hi everyone.

I have a long label that I would like to split. I found that I could use
"strwrap" for simple text. However, this is not working with this label:

str = expression(paste("< 20 µm phytoplankton ","(cells · ",mL^-1,")"))

plot(...., ylab = strwrap(str,20),...)

I suspect this is because I'm using "expression" for form my label.

I also tried with \n but this is not working either.

Regards,
Phil

--
View this message in context: http://r.789695.n4.nabble.com/Text-wrap-tp3747574p3747574.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list