Description Usage Arguments Value Author(s) See Also Examples
If this function is called in an interactive graphics device, it will pause
for a time interval (by default specified in
ani.options('interval')
) and flush the current device;
otherwise it will do nothing.
1 | ani.pause(interval = ani.options("interval"))
|
interval |
a time interval to pause (in seconds) |
Invisible NULL
.
Yihui Xie
dev.interactive
, Sys.sleep
,
dev.flush
1 2 3 4 5 6 7 8 9 10 11 | ## pause for 2 seconds
oopt = ani.options(interval = 2)
for (i in 1:5) {
plot(runif(10), ylim = c(0, 1))
ani.pause()
}
ani.options(oopt)
## see demo('Xmas2', package = 'animation') for another example
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.