[R] Rotated mtext

Emmanuel Paradis paradis at isem.univ-montp2.fr
Mon Feb 5 11:46:05 CET 2001


At 15:35 04/02/01 -0600, you wrote:
>On 02-Feb-2001 Emmanuel Paradis wrote:
>> At 10:02 01/02/01 -0600, you wrote:
>>>I seem to remember this coming up before, but I can't find it any messages
>> I've
>>>saved or in the archives (searching by subject). I want to rotate mtext so
>> that
>>>it's perpendicular to the right side. I tried srt=90 and lots of other
>> values,
>>>but it seems to be ignored. Is there a way to do this?
>>>______________________________________________________________________
>>>Stuart Luppescu         -=-=-  University of Chicago
>> 
>> Try to change the graphical parameter "las" to:
>> 
>>       par(las=1)
>
>I tried this, but whatever I put in for las I always got the text
parallell to
>the vertical axis. I put las=1 and las=2 both in the mtext call and in par()
>with the same results each time.

This works here both on Solaris 2.7 and WinNT 4.0 (R-1.2.1):

par(las=1)
plot(1:10)
mtext("top", side=3)     # the text is 
mtext("right", side=4)   # horizontal

par(las=2)
plot(1:10)
mtext("top", side=3)     # the text is 
mtext("right", side=4)   # perpendicular to the axis


Emmanuel Paradis
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list