bensmail at rulfsw.fsw.leidenuniv.nl writes: > Hello everybody, > > I am doing a plot and I would like to know which parameter I > have to use in order to get an equal scale for the axes x and > y: Means, if the intervals in the x-axis is 0,5,10,15.... I > would like to have the same scale for the y-axis. Your question assumes there is such a parameter. I don't believe this is the case. Brian Ripley has written a function "eqscplot" for S-PLUS that does carefully arrange for the x- and y-scales to be equal. It is part of the MASS library, and I believe will become available in CRAN when the copyright issues are finally sorted (which may be now, but I am not quite sure). > Thank you so much for your help. > > Halima from Leiden where the sun is shining. Bill, from Australia, where it stopped shining about 4 hours ago... :-) -- Bill Venables, Head, Dept of Statistics, Tel.: +61 8 8303 5418 University of Adelaide, Fax.: +61 8 8303 3696 South AUSTRALIA. 5005. Email: Bill.Venables at adelaide.edu.au -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello everybody, I am doing a plot and I would like to know which parameter I have to use in order to get an equal scale for the axes x and y: Means, if the intervals in the x-axis is 0,5,10,15.... I would like to have the same scale for the y-axis. Thank you so much for your help. Halima from Leiden where the sun is shining. Holland -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._