[R] Pause on graphics
Rolf Turner
r.turner at auckland.ac.nz
Wed Jan 16 20:26:29 CET 2008
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}}
More information about the R-help
mailing list