[R] rotating axis / mtext labels

From: Iain Gallagher <iaingallagher_at_btopenworld.com>
Date: Wed 08 Feb 2006 - 21:33:53 EST


Hello list.

Is it possible to use par(srt=45) to rotate text by 45 degrees along the x-axis of a plot. Using:

<code>

x_names<-c("C57 Nv", "C57 Vacc", "129 Nv", "129 Vacc", "IFNgR Nv", "IFNgR Vacc") par(srt=45)
mtext(font=2, x_names, side=1, line=1, at=l, cex=1.2) par(srt=0)

</code>

doesn't seem to work in R 2.2.0 on SUSE linux.

Suggestions would be appreciated thanks.

Iain



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 Feb 08 21:37:52 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:24 EST