STAT545-UBC / Discussion

Public discussion
38 stars 20 forks source link

Animated Graphs? #35

Closed andresesanch closed 10 years ago

andresesanch commented 10 years ago

Hi @jennybc

I was wondering if there is a way to do animated graphs in R. For example, create a series of plots and output the sequence as a .gif, .webm, or similar format? If there is something along those lines, could this possibly be touched upon when we return to making figures next week?

Thanks. Andres

jennybc commented 10 years ago

Carson Sievert (@cpsievert) suggests you take a look at the animation package:

http://cran.r-project.org/web/packages/animation/index.html

I was aware of it but have never used myself. So it's good to get confirmation it's still the first place to go.

cpsievert commented 10 years ago

And, if using knitr, you can use the chunk option fig.show = 'animate'and all the hard work is done for you :)

andresesanch commented 10 years ago

It seems easy enough.

Thank you!