posted
1/29/2006
1/29/2006
movies or animations with R
Learned from http://tolstoy.newcastle.edu.au/~rking/R/help/05/07/9319.html">this thread in the R Help Archive. This is actually not an issue for R at all---R just saves a series of images, which is regular work.
- Save a series of images in EPS, PNG, or JPEG formats.
-
Use
convert -delay xxx ... xxx.giforconvert -delay xxx... xxx.mpgto bundle them into an animated GIF image or a MPEG video. While creating animated GIFs with EPS images, use the-page letteroption forconvert. The utilityconvertis part ofImageMagick. Creating MPEG requiresmpeg2encodein your system. This is freeware that can be downloaded. -
View the result.
This is a non-issue on Windows and Mac.
On Linux, view animated GIFs with
animate, again part ofImageMagick. Play MPEGs withanimate(I didn't get it work) orxine(I don't have it), orRealPlayter.
There's also a program called jpegtoavi.
I failed to compile it.
It is only a viable option if the resultant AVI file is smaller than MPEG,
but I doubt it.