# NOT RUN {
## 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
# }
Run the code above in your browser using DataLab