@article{JSSv053i01,
title={animation: An R Package for Creating Animations and Demonstrating Statistical Methods},
volume={53},
url={https://www.jstatsoft.org/index.php/jss/article/view/v053i01},
doi={10.18637/jss.v053.i01},
abstract={Animated graphs that demonstrate statistical ideas and methods can both attract interest and assist understanding. In this paper we first discuss how animations can be related to some statistical topics such as iterative algorithms, random simulations, (re)sampling methods and dynamic trends, then we describe the approaches that may be used to create animations, and give an overview to the R package <b>animation</b>, including its design, usage and the statistical topics in the package. With the <b>animation</b> package, we can export the animations produced by R into a variety of formats, such as a web page, a GIF animation, a Flash movie, a PDF document, or an MP4/AVI video, so that users can publish the animations fairly easily. The design of this package is flexible enough to be readily incorporated into web applications, e.g., we can generate animations online with <b>Rweb</b>, which means we do not even need R to be installed locally to create animations. We will show examples of the use of animations in teaching statistics and in the presentation of statistical reports using Sweave or <b>knitr</b>. In fact, this paper itself was written with the <b>knitr</b> and <b>animation</b> package, and the animations are embedded in the PDF document, so that readers can watch the animations in real time when they read the paper (the Adobe Reader is required). Animations can add insight and interest to traditional static approaches to teaching statistics and reporting, making statistics a more interesting and appealing subject.},
number={1},
journal={Journal of Statistical Software},
author={Xie, Yihui},
year={2013},
pages={1–27}
}