[R] Rotate values on Y axis

From: d d sutcliffe_at_durham ac uk <sutcliffe_at_durham>
Date: Fri 09 Jun 2006 - 23:13:29 EST


I have been working through one of the examples on the FAQ about rotating the labels on the x axis, I need to do the same but for the y axis. I have managed to change some of the code, but I am still not getting there, there is still something wrong. My syntax is as follows:

> par(mar = c(5, 7, 4, 2) + 0.1)
> plot(1 : 8, yaxt = "n", ylab = "")
> axis(2, labels = FALSE)
> labels <- paste("Label", 1:8, sep = " ")
> text(1:8, par("usr")[3] - 0.25, srt = 45, adj = 1,
+ labels = labels, xpd = TRUE)

If anybody knows what is wrong then I would appreciate your help...been working on this for far too long already!



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 Sat Jun 10 00:39:36 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 11 Jun 2006 - 05:34:53 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.