---
title: animation
subtitle: A gallery of animations in statistics and utilities to create animations
date: 2017-02-04
---

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 animations
related to statistics and computing. A detailed introduction can be found in
this paper:[^1]

[^1]: Please note that it was written in 2011, and some functions may have been
    renamed or changed. This website contains more up-to-date information.

-   Yihui Xie (2013). *animation: An R Package for Creating Animations and
    Demonstrating Statistical Methods.* Journal of Statistical Software,
    53(**1**), 1-27. URL <http://www.jstatsoft.org/v53/i01/>.

![The Gradient Descent Algorithm](https://assets.yihui.org/figures/animation/example/grad-desc/demo-a.gif)

You can install the stable version from
[CRAN](https://cran.rstudio.com/package=animation), or the development version
from [GitHub](https://github.com/yihui/animation):

``` r
install.packages('animation')
# or development version
# remotes::install_github('yihui/animation')
```

Bugs and feature requests can be filed via GitHub issues in the repo
[**yihui/animation**](https://github.com/yihui/animation/issues). You are very
welcome to contribute code via pull requests on GitHub, or help us write
[examples](/animation/examples/) on this website. The full source of this
website is available on GitHub in the repo
[**yihui/yihui.org**](https://github.com/yihui/yihui.org). Please feel free to
fork the repo and submit pull requests with your contributions.
