animation: A Gallery of Animations in Statistics and Utilities to Create Animations

Provides functions for animations in statistics, covering topics in probability theory, mathematical statistics, multivariate statistics, non-parametric statistics, sampling survey, linear models, time series, computational statistics, data mining and machine learning. These functions may be helpful in teaching statistics and data analysis. Also provided in this package are a series of functions to save animations to various formats, e.g. Flash, 'GIF', HTML pages, 'PDF' and videos. 'PDF' animations can be inserted into 'Sweave' / 'knitr' easily.

Version: 2.7
Depends: R (≥ 2.14.0)
Imports: magick
Suggests: MASS, class, testit
Published: 2021-10-07
DOI: 10.32614/CRAN.package.animation
Author: Yihui Xie [aut, cre], Christian Mueller [ctb], Lijia Yu [ctb], Weicheng Zhu [ctb]
Maintainer: Yihui Xie <xie at>
License: GPL-2 | GPL-3 [expanded from: GPL]
NeedsCompilation: no
SystemRequirements: ImageMagick ( or GraphicsMagick ( or LyX ( for saveGIF(); (PDF)LaTeX for saveLatex(); SWF Tools ( for saveSWF(); FFmpeg ( or avconv ( for saveVideo()
Citation: animation citation info
Materials: README NEWS
In views: ReproducibleResearch, TeachingStatistics
CRAN checks: animation results


Reference manual: animation.pdf


Package source: animation_2.7.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): animation_2.7.tgz, r-oldrel (arm64): animation_2.7.tgz, r-release (x86_64): animation_2.7.tgz, r-oldrel (x86_64): animation_2.7.tgz
Old sources: animation archive

Reverse dependencies:

Reverse depends: ggghost, idm, ndtv, ph2bye
Reverse imports: anim.plots, anipaths, bamm, BioImageDbs, Cascade, christmas, CoSMoS, deseats, eChem, enviGCMS, gfcanalysis, mdsOpt, movieROC, pez, ppgm, roots, spdynmod, statgenHTP, tomoseqr
Reverse suggests: cmsafvis, ctmm, EFDR, heplots, MittagLeffleR, MSG, Patterns, phytools, piecepackr, SemNeT,, stream, surveillance, transport


Please use the canonical form to link to this page.