Re: [R] Lattice: how to get default ylim?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue 26 Jul 2005 - 04:37:44 EST

On 5/19/05, Deepayan Sarkar <deepayan@stat.wisc.edu> wrote:
> On Thursday 19 May 2005 9:11 am, David James wrote:
> > Deepayan Sarkar wrote:
> > > > v <- current.viewport() ## requires R 2.1.0 (I believe)
> > >
> > > No, I think it's been there for a while. However, AFAIR the fact that
> > > viewports have components xscale and yscale that can be accessed like
> > > this is undocumented and may change if the implementation changes (which
> > > is a real possibility).
> > >
> > > Ideally, there should be exported interfaces to access this information,
> > > either in grid or lattice. One of the reasons there isn't is that you
> > > rarely
> >
> > Yes, I agree that such an interface is quite desirable.
>
> OK, I'll put something in the next version of lattice.

For the record, lattice now has (had for a while, actually) the function

current.panel.limits

which returns the native scales of the current viewport (as a list with components xlim and ylim).

Deepayan



R-help@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 Received on Tue Jul 26 04:44:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:01 EST