Sorry, I meant par(ask=TRUE) before each plot. On MacOS, when I ran the my script, it did not wait for input at all. Only the last graph was remaining.
Thanks, Vu ----- Original Message ---- From: Rolf Turner <[EMAIL PROTECTED]> To: Vu Nguyen <[EMAIL PROTECTED]> Cc: R-help@r-project.org Sent: Wednesday, January 16, 2008 11:26:29 AM Subject: Re: [R] Pause on graphics On 17/01/2008, at 6:46 AM, Vu Nguyen wrote: > My R script needs to pause or wait for a key or mouse on each > graph. I used the following statement after each plot > > par(ask=TRUE) > > This works on Windows but not on MacOS. > Is there any way to pause on graph in MacOS? (1) Why do you set par(ask=TRUE) ***after each plot***??? It would seem to me to make more sense to set it ***once*** before commencing the sequence of plots. (2) par(ask=TRUE) appears to work just fine for me on MacOS: par(ask=TRUE) for(i in 1:3) plot(i:(10*i)) does exactly what I would expect. cheers, Rolf Turner ###################################################################### Attention:\ This e-mail message is privileged and confid...{{dropped:11}} ______________________________________________ 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.