R-beta: Plot and scale
While you are waiting for Bill Venables's suggestion to happen, maybe this will work:
x<-rnorm(100) y<-rnorm(100) plot(x,y,xlim=c(-3,3), ylim=c(-3,3))
min,max This worked for me just now (same tick marks and labels on both axes). Now if you are asking in addition how to ensure the two axes have the same physical dimensions so the plot is actually square... Well this should work plot(...,pty="s") but it doesn't due to a bug in R. pty="s" does absolutely nothing so far as I can tell. My workaround is to force it to be square by fooling around with the postscript(...,width=..., height=...) command. I personally think it is a design error in S-Plus/R for postscript() to modify the appearance of the plot compared to how it looks in the Graphics window.
From Bill in Canada where it is lightly snowing.
Bill Simpson -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._