Published by the Foundation for Open Access Statistics
Editors-in-chief: Bettina GrĂ¼n, Edzer Pebesma & Achim Zeileis    ISSN 1548-7660; CODEN JSSOBK
animation: An R Package for Creating Animations and Demonstrating Statistical Methods | Xie | Journal of Statistical Software
Authors: Yihui Xie
Title: animation: An R Package for Creating Animations and Demonstrating Statistical Methods
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 animation, including its design, usage and the statistical topics in the package. With the animation 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 Rweb, 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 knitr. In fact, this paper itself was written with the knitr and animation 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.

Page views:: 25200. Submitted: 2011-02-12. Published: 2013-04-21.
Paper: animation: An R Package for Creating Animations and Demonstrating Statistical Methods     Download PDF (Downloads: 25903)
Supplements:
animation_2.2.tar.gz: R source package Download (Downloads: 537; 313KB)
v53i01.R: R example code from the paper Download (Downloads: 647; 5KB)

DOI: 10.18637/jss.v053.i01

by
This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3) or a GPL-compatible license.