[R] Question about banking to 45 degrees.

From: Joshua Hertlein <jhertlein_at_hotmail.com>
Date: Tue, 20 May 2008 12:13:12 -0400

Hello,

  I am very interested in "banking to 45 degrees" as defined by William S. Cleveland in "Visualizing Data." I like to do it in R as well as Excel, etc. With R I have come across the following method:

xyplot(x, y, aspect="xy") (part of "lattice" package)

which will bank my graph to 45 degrees. My question is how do I obtain the aspect ratio that banks this graph to 45 degrees? I understand that R does it for me, but I would like to explicitly know the aspect ratio so that I can configure other graphs in Excel or other software.

aspect ratio = v / h (v is vertical distance of plot, h is horizontal distance of plot. NOT in the data units, but true, actual distance).

I've also come across "banking ()", but I don't understand it, nor the significance of the value it returns. Regardless, it doesn't seem to be the aspect ratio that I am looking for.

I'd appreciate any help.

Thanks in advance!

~Josh


Refresh_family_safety_052008



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 20 May 2008 - 17:03:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 May 2008 - 23:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive