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? Thanks, Vu [[alternative HTML version deleted]]
Vu Nguyen a ?crit :> 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? > Thanks, > Vuscan() should work
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:9}}
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 <r.turner@auckland.ac.nz> To: Vu Nguyen <vuqn@yahoo.com> 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}}