[R] changing text direction of mtext

Matthew Walker m.g.walker at massey.ac.nz
Fri Aug 24 11:14:25 CEST 2007


Perhaps then you would rather use the axis() command?

Say you wanted the text "hello" to be placed at y=0.5, then you might try

 > par(las=1)
 > axis(side=2, at=0.5, label="hello")

Cheers,

Matthew

squall44 wrote:
> Thanks for your answers, Matthew and Uwe.
>
> I used...
>
> par(las=1)
> mtext(side=2)
>
> ...and then I adjusted it using 'padj'.
>
> The problem is that if I change the proportions of the graph, the mtext will
> move up or down (relativly to the y-axis).
>
> By not using 'par', I can use 'adj' instead of 'padj' to adjust the mtext
> vertically. That way, the mtext not move relativly to the y-axis.
>
> Can anyone help me to get around this problem, please?
> Thx Tobias
>  
>
> squall44 wrote:
>   
>> Hello,
>>
>> Does anyone know if it's possible to change the text direction of mtext?
>>
>> I'd like to use 'mtext(side=2)' but the text should be 'left-to-right'.
>>
>> I couldn't find an argument for that in the help files.
>>
>> Thanks for any suggestions
>> Tobias
>>
>>     
>
>



More information about the R-help mailing list