You could use Sys.sleep(5) between each of your plots.
Yves Gauvreau
B.E.F.P. Universite du Quebec a Montreal
cyg at sympatico.ca
-----Message d'origine-----
De : owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]De la part de Ko-Kang at xtra.co.nz
Envoye : Tuesday, January 09, 2001 10:31 PM
A : R Help
Objet : [R] Auto Demonstration...
Dear List,
Suppose I want to do a demonstration with R, which I will be showing a
couple of different graphs (e.g. demo(graphics) ). However I want R to run
through each graphics automatically. I can achieve this by changing the
line in demo(graphics):
opar <- par(ask = interactive() &&
(.Device %in% c("X11", "GTK",
"windows", "Macintosh")))
to
opar <- par(ask = FALSE &&
(.Device %in% c("X11", "GTK",
"windows", "Macintosh")))
However, I am not sure how I can delay the speed of changing between graphs.
In other words, as soon as R finish painting one graph, it will start
painting the next one immediately. What can I do to make R wait for, say 5
seconds, before it start painting the next graph?
Thanks a lot,
Ko-Kang Wang
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._