Re: [R] Location of grobs etc on lattice output

2004-11-21 Thread John Maindonald
I'm puzzled about side effects of trellis.unfocus(): The following runs without problem, though grid.text() does not seem to do anything. (I'd thought that I had it working at one point.) library(DAAG); library(lattice); library(grid) cuckoos.strip - stripplot(species ~ length, xlab=,

Re: [R] Location of grobs etc on lattice output

2004-11-21 Thread Deepayan Sarkar
On Sunday 21 November 2004 16:35, John Maindonald wrote: I'm puzzled about side effects of trellis.unfocus(): The following runs without problem, though grid.text() does not seem to do anything. (I'd thought that I had it working at one point.) library(DAAG); library(lattice);

[R] Location of grobs etc on lattice output

2004-11-20 Thread John Maindonald
Is there any way, after use of print.trellis(), to obtain the co-ordinates of the plot region, e.g., in what are then the native co-ordinates? e.g. library(DAAG) library(lattice); library(grid) data(cuckoos) pushViewport(viewport(layout=grid.layout(2, 1)))

Re: [R] Location of grobs etc on lattice output

2004-11-20 Thread Deepayan Sarkar
On Saturday 20 November 2004 19:41, John Maindonald wrote: Is there any way, after use of print.trellis(), to obtain the co-ordinates of the plot region, e.g., in what are then the native co-ordinates? Have you read help(trellis.focus)? This is new in 2.0.0 and the recommended API for