The code below shows an example of the animint package: an interactive animation can be defined as a list of ggplots with showSelected and clickSelects aesthetics.
library(animint) VIZ gg2animint_knitr(viz) # use gg2animint(viz) instead if not inside knitr/Rmd.
DESCRIPTION
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.