Learn R Programming

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

animation (version 2.0-1)

A Gallery of Animations in Statistics and Utilities to Create Animations

Description

This package contains various functions for animations in statistics, covering many 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 of help 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 page and PDF (saveSWF(), saveMovie(), saveHTML(), and saveLatex() respectively). PDF animations can be inserted into Sweave easily.

Copy Link

Version

Install

install.packages('animation')

Monthly Downloads

6,054

Version

2.0-1

License

GPL-2 | GPL-3

Maintainer

Yihui Xie

Last Published

January 10th, 2011

Functions in animation (2.0-1)

bisection.method

Demonstration of the Bisection Method for root-finding on an interval.
sample.strat

Demonstration for the stratified sampling.
pageview

Page views from Sep 21, 2007 to Dec 2, 2007 of Yihui's website.
g.brownian.motion

Brownian Motion using Google Visualization API.
ani.pause

Pause for a while.
newton.method

Demonstration of the Newton-Raphson method for root-finding.
iatemp

Average yearly temperatures in central Iowa.
animation-package

A Gallery of Animations in Statistics and Utilities to Create Animations.
ani.stop

Write the HTML animation page.
conf.int

Demonstration of the concept of confidence intervals.
clt.ani

Demonstration of the Central Limit Theorem.
cv.nfeaturesLDA

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

Demonstrate the process of k-Nearest Neighbour classification on the 2D plane.
sample.ratio

Demonstrate the ratio estimation in sampling survey.
saveLatex

Insert animations into a LaTeX document and compile it.
pollen

Synthetic dataset about the geometric features of pollen grains.
saveMovie

Convert images to a single animation file (typically GIF).
buffon.needle

Simulation of Buffon's Needle.
vi.grid.illusion

Visual illusions: Scintillating grid illusion and Hermann grid illusion.
lln.ani

Demonstration of Law of Large Numbers.
CLELAL09

The NBA game between CLE Cavaliers and LAL Lakers on Dec 25, 2009.
flip.coin

Probability in flipping coins.
MC.samplemean

Sample Mean Monte Carlo integration.
mwar.ani

Demonstration for ``Moving Window Auto-Regression''.
vanke1127

Stock prices of Vanke Co.
ani.record

Record and replay animations.
sample.simple

Demonstration for simple random sampling without replacement.
grad.desc

Gradient Descent Algorithm for the 2D case.
sim.qqnorm

Simulation of QQ plots for the Normal distribution.
ani.options

Set or query animation options.
ecol.death.sim

A simulation of the death of two species with certain probabilities.
BM.circle

Brownian Motion in a circle.
ani.start

Start the generation of an HTML animation page.
MC.hitormiss

Hit or Miss Monte Carlo integration.
kmeans.ani

Demonstration of the k-Means clustering algorithm.
convert

A wrapper for the `convert' utility of ImageMagick or GraphicsMagick.
animation-defunct

Defunct functions in the animation package.
cv.ani

Demonstration for the process of cross-validation.
vi.lilac.chaser

Visual Illusions: Lilac Chaser.
kfcv

Sample sizes for k-fold cross-validation.
quincunx

Demonstration of the Quincunx (Bean Machine/Galton Box).
pdftk

A wrapper for the PDF toolkit Pdftk.
HuSpeech

Word Counts of a Speech by Chinese President Hu.
Rosling.bubbles

The bubbles animation in Hans Rosling's Talk.
saveSWF

Convert images to Flash animations.
price.ani

Demonstrate stock prices in animations.
brownian.motion

Demonstration of Brownian motion on the 2D plane.
least.squares

Demonstrate the least squares method.
moving.block

Cycle through an R object and plot each subset of elements.
sample.system

Demonstration for the systematic sampling.
sample.cluster

Demonstration for the cluster sampling.
saveHTML

Insert animations into an HTML page.
boot.iid

Demonstrate bootstrapping for iid data.