On Fri, Feb 13, 2009 at 1:42 PM, Daniel Moreira <daniel.more...@duke.edu> wrote: > > Try defining the argument 'pos' in the axis command-line, like: > > x <- rnorm(100) > z <- gl(2,50) > y <- rnorm(100, mean= 1.8*as.numeric(z)) > > plot(x,y,type="n", axes=F) > points(x,y, pch="$",cex=0.7, col=z) > axis(1, col="green", col.axis="green", pos=0) > axis(2, col="red", col.axis="red", pos=-2) > > ________________________________________ > Daniel Moreira, MD >
If you actually ran that code and still suggest it as the fix, then I think you must be joking. Pushing the axes into the middle of the data cloud in order to make them cross is certainly not making a very nice looking plot. Not only are there observations outside the area framed by the axes, but there are axis labels that are overlapped by observations and by the axes themselves. PJ -- Paul E. Johnson Professor, Political Science 1541 Lilac Lane, Room 504 University of Kansas ______________________________________________ R-help@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.