[R] rotate ylab

Rob Foxall rjf at waca.sys.uea.ac.uk
Mon Jun 11 20:19:51 CEST 2001

On Mon, 11 Jun 2001, Prof Brian Ripley wrote:

> On Mon, 11 Jun 2001, Rob Foxall wrote:
> > Hello,
> > 	I have an expression for the y axis, which I wish to rotate by 90
> > degrees (so that this label has the same orientation as for the x
> > axis). Thought the graphical parameter crt (or srt) would do the trick,
> > but haven't had any joy so far. Any ideas?
> > (Using Version 1.2.2, linux, redhat 7.0)
> >From ?par:
>      las: numeric in {0,1,2,3}; the style of axis labels.
>           0: always parallel to the axis [default],
>           1: always horizontal,
>           2: always perpendicular to the axis,
>           3: always vertical.
>           Note that other string/character rotation (via  `par(srt =
>           ..)') does not affect the axis labels.

Cheers for the quick reply. However, I found when I used las that although
it changed the orientation of the axis labels (ie the numbers on the axis
tickmarks), it didn't change the orientation of the x- and y axis titles,
ie the expressions which I passed to xlab and ylab with the plot command:


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