[R] Rotated mtext
s-luppescu@uchicago.edu
s-luppescu at uchicago.edu
Mon Feb 5 15:52:35 CET 2001
On 05-Feb-2001 Emmanuel Paradis wrote:
> At 10:28 05/02/01 +0100, Uwe Ligges wrote:
>>s-luppescu at uchicago.edu wrote:
>>> On 02-Feb-2001 Emmanuel Paradis wrote:
>>> > 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.
>>
>>Works for me (R-1.2.1, NT4.0):
>>
>> par(las=1)
>> plot(1:10)
>> mtext("A", 4, line=1)
>
> This works for me too on Solaris 2.7 (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
This simple example works for me, too. I think my problem is that I have some
other parameters on the line which prevents las or srt from working correctly.
Here's the line I'm trying to print:
> mtext(rev(rownames(mdfname.2))[i], side=4, outer=T,
+ at=(((i-1) * 2 + 1) /(2* rowdim)), cex=0.7, las=2, srt=90)
Maybe it's the at that's preventing it from working. Is there a way around this?
______________________________________________________________________
Stuart Luppescu -=-=- University of Chicago
$(B:MJ8$HCRF`H~$NIc(B -=-=- s-luppescu at uchicago.edu
http://www.consortium-chicago.org/people/sl.html
http://musuko.uchicago.edu/pubkey.asc for PGP Public Key
ICQ #21172047 AIM: psycho7070
A soft answer turneth away wrath; but grievous words stir up anger.
-- Proverbs 15:1
>> Sent on 05-Feb-2001 at 08:45:32 with xfmail
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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