[R] controlling location of labels in axis()

From: Andrew Yee <yee_at_post.harvard.edu>
Date: Thu, 12 Jun 2008 09:32:02 -0400


Here's a naive question about axis()

How do you control the location of the labels with the axis() command?

In the following example:

foo <- data.frame(plot.x=seq(1:3), plot.y=seq(4:6)) plot(foo$plot.x, foo$plot.y, type='n', axes=FALSE) points(foo$plot.x, foo$plot.y)
axis(1, at=foo$plot.x, labels=foo$plot.x)

I'd like to be able the control the y location of the labels (i.e. move up or down in the graph).

Thanks,
Andrew

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 12 Jun 2008 - 15:10:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 16:30:38 GMT.

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

list of date sections of archive