Re: [R] graphics: axis label

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Wed 11 Jan 2006 - 18:56:03 EST

Johannes Hüsing wrote:

> Hello,
> par(las=1) sets the orientation of the axis labels
> to horizontal. That is, the tick mark labels. How
> do I set the orientation of the axis label, which
> annotates the variable plotted along the axis, to
> horizontal?
>
> Sorry for asking such a basic question here, but I
> haven't found anything in the description of the
> "par"s.

You have to use a call to text() and place it into the margins by specifying, e.g.,
  par(xpd=TRUE)

as in:

   plot(1:10, ylab="")
   par(xpd=TRUE, mar=c(4,8,0,0)+.1)
   text(0, 5.5, "Hallo Johannes!", adj=1)

Uwe

> Greetings
>
>
> Johannes
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jan 11 19:39:48 2006

This archive was generated by hypermail 2.1.8 : Wed 11 Jan 2006 - 22:03:34 EST