[19010] in s-news-athena
Re: [S] Aspect Ratio in Plots
daemon@ATHENA.MIT.EDU (Prof Brian D Ripley)
Mon Aug 23 14:24:40 1999
Date: Mon, 23 Aug 1999 19:17:37 +0100 (BST)
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
To: James Lymp <lymp@u.washington.edu>
Cc: S-news@wubios.wustl.edu, "Jason G. Cummins" <jason.cummins@nyu.edu>
In-Reply-To: <005001beed8a$02a21900$cecf8e8c@u.washington.edu>
Message-Id: <Pine.GSO.4.05.9908231910090.3462-100000@auk.stats>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Mon, 23 Aug 1999, James Lymp wrote:
> It seems unfair to the software developers to say that the practice of
> displaying scatterplots according to the range of the data is deceptive when
> the axes are clearly labeled and when the X and Y variables usually don't
> have the same units anyway. Imagine plotting income in US dollars vs. age in
> years, for example. That said, I agree that in your case it would be
> desirable to have the domains of the same length. One way to do this is
> outlined below (pretend the variables are in two vectors called x and y).
>
> pd_range(c(x,y),na.rm=T) ### plot domain
> plot(x,y,xlim=pd,ylim=pd)
No, that does not work. Did you actually try it? The plot region is not
usually square (even if the figure region is) as the default outer margin
sizes are asymmetric.
The best solution I know (sent privately to the original poster) is to use
eqscplot in library MASS: http://www.stats.ox.ac.uk/pub/MASS3/sites.html
for sources.
BTW, do you find "pd_range" readable? Do you parse it correctly at first
glance? Have you ever looked at any C code, for example? (In C it is a
common convention for a single name.) Do please
leavespacesaroundbinaryoperators for the sake of your readers.
--
Brian D. Ripley, ripley@stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news