data("fooepidata")
(s <- summary(fooepidata))
# plot the ordering of the events only
animate(s, sleep=0.01) # or: animate(fooepidata)
# with timer (animate only up to t=10)
animate(s, time.spacing=0.1, end=10, sleep=0.01)
# using features of the animation package:
if (require("animation")) saveHTML(
animate(s, time.spacing = 1, sleep = 0, generate.snapshots = "epiani"),
img.name = "epiani", use.dev = FALSE, ani.type = "png", width = 600
)
Run the code above in your browser using DataLab