R-beta: Plot and scale
wsimpson at uwinnipeg.ca
Thu Mar 19 15:41:00 CET 1998
While you are waiting for Bill Venables's suggestion to happen, maybe this
> plot(x,y,xlim=c(-3,3), ylim=c(-3,3))
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
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.
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
More information about the R-help