john crepezzi wrote:
Is there any way to determine if a plot exists before running lines()?
Hi John,
I use :
if(dev.cur()==1)
which usually indicates that the current device is the null device, and
therefore no plot windows are active. See the code for triax.plot.
Jim
______________________________________________
[email protected] 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.