Re: [R] Creating Movies with R

From: Gregor Gorjanc <>
Date: Tue 26 Sep 2006 - 01:07:27 GMT


J.R. Lockwood <lockwood <at>> writes:
> An alternative that I've used a few times is the jpg() function to
> create the sequence of images, and then converting these to an mpeg
> movie using "mencoder" distributed with "mplayer". This works on both
> windows and linux. I have a pretty self-contained example file
> written up that I can send to anyone who is interested. Oddly, the
> most challenging part was creating a sequence of file names that would
> be correctly ordered - for this I use:
> lex <- function(N){
> ## produce vector of N lexicograpically ordered strings
> ndig <- nchar(N)
> substr(formatC((1:N)/10^ndig,digits=ndig,format="f"),3,10000000)
> }

RWiki[1] would be a very nice place for such explanation. I am looking forwrad to it!


[1] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue Sep 26 11:11:06 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 26 Sep 2006 - 02:30:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.