A plain gif with no navigation

library(Rmdanimation)
# use cat to avoid the addition of line-numbering to the markdown string
cat(animatedGIF({for (i in 0:10) plot(i, i, xlim=c(0,10), ylim=c(0,10))}, "myfirstanimation", interval=0.2, allowHTML=FALSE))

Reset animation by clicking on it

r animatedGIF({for (i in 0:10) plot(i, i, xlim=c(0,10), ylim=c(0,10))}, "secondanimation", interval=0.2)

A non-looping gif

Again the animation can be restarted by clicking on it

r animatedGIF({for (i in 0:10) plot(i, i, xlim=c(0,10), ylim=c(0,10))}, "thirdanimation", interval=0.2, loop=1)

Full navigability in an Iframe

r animatedHTML({for (i in 0:10) plot(i, i, xlim=c(0,10), ylim=c(0,10))}, "htmlanimation", interval=0.2)

Links



kevinstadler/Rmdanimation documentation built on May 20, 2019, 9:08 a.m.