Re: R-beta: Plot and scale

Bill Simpson (wsimpson@uwinnipeg.ca)
Thu, 19 Mar 1998 08:41:00 -0600 (CST)


Date: Thu, 19 Mar 1998 08:41:00 -0600 (CST)
From: Bill Simpson <wsimpson@uwinnipeg.ca>
To: Bensmail <bensmail@rulfsw.fsw.LeidenUniv.nl>
Subject: Re: R-beta: Plot and scale
In-Reply-To: <350FB67A.1C181304@rulfsw.fsw.leidenuniv.nl>

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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._