[R] New line operator in mtext

Uwe Ligges ligges at statistik.tu-dortmund.de
Mon Jun 22 13:06:21 CEST 2009



Steve Murray wrote:
> Dear R Users,
> 
> I'm finding that when I execute the following bit of code, that the new line argument is actually displayed as text in the graphics device. How do I avoid this happening?
> 
> mtext(side=2, line=5.5, expression(paste("Monthly Summed Runoff (mm/month)", "/n", "and Summed Monthly Precipitation (mm x  ",10^2,"/month)")))


use "\n" rather than "/n"

Uwe Ligges


> 
> I suspect that I've done, or omitted, something fairly obvious, but as yet cannot see it!
> 
> Thanks for your help,
> 
> Steve
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list