Re: [R] Finding absolute viewport location in grid / lattice

2013-11-07 Thread Paul Murrell
Hi Take a look at current.transform() (the grid.locator() function shows an example use) Paul On 11/06/13 13:35, James Price wrote: I'm trying to do some post-plot manipulation of some lattice graphics, in which I need to get the absolute viewport locations on the plotting device. So for exa

[R] Finding absolute viewport location in grid / lattice

2013-11-05 Thread James Price
I'm trying to do some post-plot manipulation of some lattice graphics, in which I need to get the absolute viewport locations on the plotting device. So for example: library(lattice) print(xyplot(Petal.Length ~ Sepal.Length | Species, iris, layout = c(2, 2))) trellis.focus('panel', 1, 1) This s