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.
This is an R package to create and export animations to a variety of formats (HTML/JS, GIF, Video, PDF), and it also serves as a gallery of statistical animations.
To install the stable version on CRAN:
install.packages('animation')
To install the GitHub version under development:
install.packages('animation', repos = 'https://yihui.r-universe.dev')
If you want to contribute, the documentation and NAMESPACE of this package are generated by roxygen2 and Rd2roxygen:
if (!require('Rd2roxygen') install.packages('Rd2roxygen')
Rd2roxygen::rab('animation', install = TRUE)
Bugs and feature requests can be filed to https://github.com/yihui/animation/issues. Pull requests are also welcome.