[R] graphics: axis label

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Jan 11 08:56:03 CET 2006


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




More information about the R-help mailing list