[R] Plot Accessibility

Jim Lemon jim at bitwrit.com.au
Sat Sep 20 13:07:37 CEST 2008


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



More information about the R-help mailing list