[R] New line operator in mtext

Duncan Murdoch murdoch at stats.uwo.ca
Mon Jun 22 17:08:17 CEST 2009


On 6/22/2009 10:30 AM, Steve Murray wrote:
> Thanks again for a very useful comment. That seems to have separated the text and put it onto separate lines.
> 
> However, whilst this results in the text being centralised in relation to the axis, it means that the lower line is left-justified in relation to the upper line, rather than being centralised.
> 
> How do I go about centralising the lower line in relation to the upper line, whilst keeping it central to the axis?

I think two calls to mtext, one for each line, should do it.

Duncan Murdoch




More information about the R-help mailing list