Learn R Programming

⚠️There's a newer version (2.7) of this package.Take me there.

animation (version 2.2)

A gallery of animations in statistics and utilities to create animations

Description

This package contains a variety of functions for animations in statistics, covering areas such as probability theory, mathematical statistics, multivariate statistics, nonparametric statistics, sampling survey, linear models, time series, computational statistics, data mining and machine learning. These functions might be helpful in teaching statistics and data analysis. Also provided in this package are several approaches to save animations to various formats, e.g. Flash, GIF, HTML pages, PDF and videos (saveSWF(), saveGIF(), saveHTML(), saveLatex(), and saveVideo() respectively). PDF animations can be inserted into Sweave/knitr easily.

Copy Link

Version

Install

install.packages('animation')

Monthly Downloads

6,790

Version

2.2

License

GPL-2 | GPL-3

Maintainer

Yihui Xie

Last Published

April 14th, 2013

Functions in animation (2.2)

brownian.motion

Demonstration of Brownian motion on the 2D plane
buffon.needle

Simulation of Buffon's Needle
grad.desc

Gradient Descent Algorithm for the 2D case
sample.cluster

Demonstration for the cluster sampling
vanke1127

Stock prices of Vanke Co., Ltd on 2009/11/27
saveLatex

Insert animations into a LaTeX document and compile it
cv.ani

Demonstration for the process of cross-validation
moving.block

Cycle through an R object and plot each subset of elements
saveVideo

Convert a sequence of images to a video by FFmpeg
saveGIF

Convert images to a single animation file (typically GIF) using ImageMagick or GraphicsMagick
pdftk

A wrapper for the PDF toolkit Pdftk
kfcv

Sample sizes for k-fold cross-validation
sample.ratio

Demonstrate the ratio estimation in sampling survey
qpdf

A wrapper for the PDF toolkit qpdf
saveHTML

Insert animations into an HTML page
boot.lowess

Bootstrapping with LOWESS
cv.nfeaturesLDA

Cross-validation to find the optimum number of features (variables) in LDA
conf.int

Demonstration of the concept of confidence intervals
quincunx

Demonstration of the Quincunx (Bean Machine/Galton Box)
ecol.death.sim

A simulation of the death of two species with certain probabilities
sample.simple

Demonstration for simple random sampling without replacement
pageview

Page views from Sep 21, 2007 to Dec 2, 2007 of Yihui's website
knn.ani

Demonstration of the k-Nearest Neighbour classification
Rosling.bubbles

The bubbles animation in Hans Rosling's Talk
im.convert

A wrapper for the `convert' utility of ImageMagick or GraphicsMagick
flip.coin

Probability in flipping coins
pollen

Synthetic dataset about the geometric features of pollen grains
g.brownian.motion

Brownian Motion using Google Visualization API
ani.pause

Pause for a while and flush the current graphical device
ObamaSpeech

Word counts of a speech by the US President Obama
sample.strat

Demonstration for the stratified sampling
ani.record

Record and replay animations
newton.method

Demonstration of the Newton-Raphson method for root-finding
vi.grid.illusion

Visual illusions: Scintillating grid illusion and Hermann grid illusion
animation-package

A Gallery of Animations in Statistics and Utilities to Create Animations
MC.samplemean

Sample Mean Monte Carlo integration
sim.qqnorm

Simulation of QQ plots for the Normal distribution
MC.hitormiss

Hit or Miss Monte Carlo integration
boot.iid

Demonstrate bootstrapping for iid data
BM.circle

Brownian Motion in a circle
sample.system

Demonstration for the systematic sampling
lln.ani

Demonstration of Law of Large Numbers
price.ani

Demonstrate stock prices in animations
vi.lilac.chaser

Visual Illusions: Lilac Chaser
animation-defunct

Defunct functions in the animation package
clt.ani

Demonstration of the Central Limit Theorem
least.squares

Demonstrate the least squares method
ani.start

Start the generation of an HTML animation page
kmeans.ani

Demonstration of the k-Means clustering algorithm
CLELAL09

The NBA game between CLE Cavaliers and LAL Lakers on Dec 25, 2009
bisection.method

Demonstration of the Bisection Method for root-finding on an interval
iatemp

Average yearly temperatures in central Iowa
mwar.ani

Demonstration for ``Moving Window Auto-Regression''
saveSWF

Convert images to Flash animations
ani.stop

Write the HTML animation page
HuSpeech

Word counts of a speech by the Chinese President Hu
ani.options

Set or query animation options