[19012] 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 14:45:27 1999

Message-Id: <00b201beed97$0e6b24e0$cecf8e8c@u.washington.edu>
From: "James Lymp" <lymp@u.washington.edu>
To: "Prof Brian D Ripley" <ripley@stats.ox.ac.uk>
Cc: <S-news@wubios.wustl.edu>
Date: Mon, 23 Aug 1999 11:41:01 -0700
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


All right. Enough already. Prof Brian D Ripley and Gunter, Bert have not so
subtly pointed out that my solution was "wrong". My solution was
approximate. It is a lot closer than where the original poster started.
Peter Perkins kindly suggested adding par(pty="s") which helps a lot. On my
Windows 95 - based machine running verson 4.5, the following commands get
the aspect ratio to within 5% if not 1% of each other. My rudimentary
measuring system (lined paper on the screen and printout) is no more
accurate than that. Also, my appologies to C programmers that are unaware
that the underscore (_) is the same as <- for many versions of S-PLUS.
Please tell me I am not the first person to use the underscore!

####
graphsheet(8,8)
par(pty="s")
pd <- range(c(x,y),na.rm=T)
plot(x,y,xlim=pd,ylim=pd)
####

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

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