animation : An R Package for Creating Animations and Demonstrating Statistical Methods

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 w...

Full description

Bibliographic Details
Main Author: Yihui Xie
Format: Article
Language:English
Published: Foundation for Open Access Statistics 2013-04-01
Series:Journal of Statistical Software
Subjects:
R
Online Access:http://www.jstatsoft.org/v53/i01/paper
id doaj-04ad3ef593244bf08fb4b9e882912750
record_format Article
spelling doaj-04ad3ef593244bf08fb4b9e8829127502020-11-24T22:39:25ZengFoundation for Open Access StatisticsJournal of Statistical Software1548-76602013-04-01531animation : An R Package for Creating Animations and Demonstrating Statistical MethodsYihui XieAnimated 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.http://www.jstatsoft.org/v53/i01/paperanimationstatistical demonstrationsimulationweb applicationreproducible researchR
collection DOAJ
language English
format Article
sources DOAJ
author Yihui Xie
spellingShingle Yihui Xie
animation : An R Package for Creating Animations and Demonstrating Statistical Methods
Journal of Statistical Software
animation
statistical demonstration
simulation
web application
reproducible research
R
author_facet Yihui Xie
author_sort Yihui Xie
title animation : An R Package for Creating Animations and Demonstrating Statistical Methods
title_short animation : An R Package for Creating Animations and Demonstrating Statistical Methods
title_full animation : An R Package for Creating Animations and Demonstrating Statistical Methods
title_fullStr animation : An R Package for Creating Animations and Demonstrating Statistical Methods
title_full_unstemmed animation : An R Package for Creating Animations and Demonstrating Statistical Methods
title_sort animation : an r package for creating animations and demonstrating statistical methods
publisher Foundation for Open Access Statistics
series Journal of Statistical Software
issn 1548-7660
publishDate 2013-04-01
description 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.
topic animation
statistical demonstration
simulation
web application
reproducible research
R
url http://www.jstatsoft.org/v53/i01/paper
work_keys_str_mv AT yihuixie animationanrpackageforcreatinganimationsanddemonstratingstatisticalmethods
_version_ 1725708981797650432