Re: [R] Creating Movies with R

From: Gregor Gorjanc <gregor.gorjanc_at_bfro.uni-lj.si>
Date: Tue 26 Sep 2006 - 01:07:27 GMT

Hello!

J.R. Lockwood <lockwood <at> rand.org> 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!

Gregor

[1]http://wiki.r-project.org/



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.