Skip to content
Back to formatted view

Raw Message

Message-ID: <002301c07ab5$cda84480$637e37d2@kokangwang>
Date: 2001-01-10T03:31:21Z
From: Ko-Kang Kevin Wang
Subject: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010110/1e6d9e6b/attachment.html