[R] Getting default aspect ratio from lattice

From: Waichler, Scott R <Scott.Waichler_at_pnl.gov>
Date: Tue, 15 May 2007 12:33:34 -0700

How can I get the value of the aspect ratio that is used in a lattice plot? In a levelplot for instance, the native units per cm of my x and y axes are different, and I need to know the aspect ratio so that I can correctly plot vectors. I know how to set the aspect in a high-level lattice function but I can't quite figure out how to get it. I would like call to levelplot() without printing anything, get the aspect ratio, use it to create my vector arrows, then call levelplot() again with print() to create the final figure.

Scott Waichler
Pacific Northwest National Laboratory
scott.waichler _at_ pnl.gov

R-help_at_stat.math.ethz.ch 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 15 May 2007 - 19:46:51 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 15 May 2007 - 21:32:17 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.