Re: R-beta: Plot and scale

Bill Simpson (
Thu, 19 Mar 1998 08:41:00 -0600 (CST)

Date: Thu, 19 Mar 1998 08:41:00 -0600 (CST)
From: Bill Simpson <>
To: Bensmail <>
Subject: Re: R-beta: Plot and scale
In-Reply-To: <>

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))
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.

Bill Simpson

r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: