Message-ID: <AANLkTinrWiDcnxDLygNLWrPwdRkK_pVXoAELwvQHRH1a@mail.gmail.com>
Date: 2010-12-13T06:30:02Z
From: Marcin Kozak
Subject: Plot's aspect ratio and pty
Dear All,
I've been playing with pty, and it seems it does not produce square
plots as it is expected to (or at least as I expect it to). Consider
this simple example:
par(pty="s"); plot(1:10, 1:10)
This should produce a square plot, right? Well, if you have a look at
the graph, it is not square! So, maybe the limits?
par(pty="s"); plot(1:10, 1:10, xlim = c(0,11), ylim=c(0,11))
No, again not. So let's try and help to equalize everything, just to be sure:
windows(6, 6); par(mar=c(3, 3, 3, 3), pty="s"); plot(1:10, 1:10, xlim
= c(0, 11), ylim = c(0, 11))
Again not!
pty = "s" is to generate a square plotting region, and it does not
seem to do that. Where is my mistake?
Thanks in advance,
Marcin