[R] Rotated mtext

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Feb 5 19:32:24 CET 2001


On Mon, 5 Feb 2001 s-luppescu at uchicago.edu wrote:

> 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)

[SNIP]

> 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?

I cannot reproduce your problem. Could you provide a complete example,
please?

Remark:
There are two open problem reports (PR#726, PR#823) related to mtext() and
las settings. But both do not decribe your problem, I think.

Regards,
Uwe Ligges

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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