[R] How to tell if lattice is current device?
dieter.menne at menne-biomed.de
Thu Feb 12 08:51:57 CET 2009
Remko Duursma <remkoduursma <at> gmail.com> writes:
> >> How can I tell if the current device was made with plot() or e.g.
> >> levelplot() or another lattice function?
> >> dev.cur() does not help me, it just tells me "windows 2".
> > A device can have both types, although that's rare.
> > The best you can probably do is keep track of the last call to
> > plot.new() and grid.newpage(). See
> > ?setHook
> > ?plot.new
> > ?grid.newpage
isStandard = function()
isLattice = function()
More information about the R-help