Dear R-helpers,

I have a function that adds some segments to the current plot, but if
I the current plot is made with any of the lattice functions (in my
case, levelplot),
I should use lsegments rather than segments.

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".

(Windows XP).

thanks
Remko


-------------------------------------------------
Remko Duursma
Post-Doctoral Fellow

Centre for Plant and Food Science
University of Western Sydney
Hawkesbury Campus
Richmond NSW 2753

Dept of Biological Science
Macquarie University
North Ryde NSW 2109
Australia

Mobile: +61 (0)422 096908

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to