Learn R Programming

animation (version 0.2-0)

animation-package: Animated Statistics Using R

Description

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

Arguments

Details

ll{ 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.

References

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab