[19008] in s-news-athena

home help back first fref pref prev next nref lref last post

Re: [S] Aspect Ratio in Plots

daemon@ATHENA.MIT.EDU (James Lymp)
Mon Aug 23 13:14:18 1999

Message-Id: <005001beed8a$02a21900$cecf8e8c@u.washington.edu>
From: "James Lymp" <lymp@u.washington.edu>
To: <S-news@wubios.wustl.edu>, "Jason G. Cummins" <jason.cummins@nyu.edu>
Date: Mon, 23 Aug 1999 10:07:41 -0700
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


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)

-----
James Lymp
http://staff.washington.edu/lymp
lymp@u.washington.edu
-----


----- Original Message -----
From: Jason G. Cummins <jason.cummins@nyu.edu>

I'd be obliged if anyone could tell me how to change the aspect
ratio in plots.  Splus defaults to show my plots in ranges that
are deceptive.  For example, the domain of the Y-axis is [0,5]
while that for the X-axis is [0,10].  I want Splus to plot the
x and y axes so that the length in the plot from 0 to 1 in the
Y domain is the same as the length from 0 to 1 in the X domain.
By default Splus will instead change the aspect ratio so that
a given distance in the Y domain is one-half of that in the
X domain.  This makes the slope of the ksmooth, e.g., appear
to be twice what it actually is.


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

home help back first fref pref prev next nref lref last post