animation-package {animation}R Documentation

Animated Statistics Using R

Description

Various functions for animations in statistics which could probably aid in teaching statistics and data analysis.

Details

Package: animation
Type: Package
Version: 0.1
Date: 2008-03-10
License: GPL (>=2)

This package mainly makes use of HTML & JavaScript to illustrate animations, and other approaches such as graphical devices (x11 or rgl, etc) or GIF/MPG movies can also be employed.

Author(s)

Yihui Xie <http://www.yihui.name>

References

Animated Statistis Using R: http://R.yihui.name; created and maintained by Yihui Xie

Examples

# create an animation page in the tempdir() and auto-browse it 
# Brownian Motion 
library(animation) 
op = par(mar = c(3, 3, 2, 0.5), mgp = c(2, .5, 0), tcl = -0.3, 
    cex.axis = 0.8, cex.lab = 0.8, cex.main = 1) 
brownian.motion(control = ani.control(interval = 0.05, nmax = 100))
par(op) 

# Bootstrapping
boot.iid(interval = 0.3)
 

[Package animation version 0.2-0 Index]