[R] is this trellis device or standard graphics device?
Prasenjit Kapat
kapatp at gmail.com
Thu Mar 29 05:41:06 CEST 2007
Hi,
On Wednesday 28 March 2007 07:32:08 pm Paul Murrell wrote:
> You could call the grid function getNames() and if that is zero-length,
> then the device is either blank or only contains traditional graphics.
Thanks Dr. Murrell. I was looking for something simple like this.
>
> > A related question is whether plot.new (or frame) was called to obtain
> > this graphics device...
>
> Try ...
>
> recordPlot()[[1]][[1]]
>
> ... which should look something like this after plot.new() ...
>
> [[1]]
> .Primitive("plot.new")
>
> [[2]]
> NULL
>
> ... though you're starting to get on shakier ground here.
>
> Paul
PK.
More information about the R-help
mailing list