statistical animations using r

8
08/09/22 Statistical Animations Using R - Yi hui Xie 1 Statistical Animations Using R Yihui Xie useR! 2008 @ Dortmund Aug 11, 2008

Upload: macario-trujillo

Post on 31-Dec-2015

29 views

Category:

Documents


1 download

DESCRIPTION

Statistical Animations Using R. Yihui Xie useR! 2008 @ Dortmund Aug 11, 2008. Did you know that there are three kinds of statisticians – those that can count and those that can’t. Statistics are like a bikini; What is revealed is interesting; What is concealed is crucial. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 1

Statistical Animations Using

R

Yihui XieuseR! 2008 @ Dortmund

Aug 11, 2008

Page 2: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 2

Did you know that there are three kinds of statisticians – those that can count and those that can’t.

Statistics are like a bikini; What is revealed is interesting; What is concealed is crucial.

http://www.ilstu.edu/%7Egcramsey/Gallery.html

Page 3: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 3

Outline

The animation package Demonstrations Future developments

Page 4: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 4

The animation package

Yihui Xie (2008). animation: Demonstrate Animations in Statistics. R package version 1.0-1. http://animation.yihui.name

To turn ideas into animations (as quickly & faithfully as possible…)

Based on the common characteristic of animation and some statistical procedures

To produce animations in various formats

Page 5: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 5

The animation package (cont)

for (i in 1:360) { plot(1, ann = FALSE, type = "n", axes = FALSE)

text(1, 1, "Animation", srt = i, col = rainbow(360)[i], cex = 7 * i/360)

Sys.sleep(0.01)}

Page 6: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 6

Demonstrations

Package features Animations using R windows graphics devices Creating animations in HTML pages (animated

by JavaScript) Third-party software

ImageMagick: GIF, MPEG (convert) SWF Tools: Flash (png2swf, jpeg2swf, pdf2swf)

Statistical animations Not “Tom & Jerry”, but stuff like CLT, kNN, …

Page 7: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 7

Future developments

More animations in statistics Interactivity in the Web via “Rweb” Probably a GUI? (Tcl/Tk, gWidgets) SWF Tools utility “swfc”

Page 8: Statistical Animations Using R

04/19/23 Statistical Animations Using R - Yihui Xie 8

Thanks

Contact me xie [at] yihui.name (++86)-10-82509086 http://www.yihui.name/