Hi all, I have an array of 10000 x 200 x 200 numbers... which is a time-series of 200x200 2D data... The 1st dimension is the time index. Is there a way to make a movie out of these data - i.e. playback 10000 frames(200x200) at a playback rate per second? Thanks a lot! [[alternative HTML version deleted]]
G See
2012-Jan-12 14:41 UTC
[R] [R-SIG-Finance] how do I make a movie out of a timeseries of 2D data?
Michael, Please don't cross post to both lists. If it doesn't have to do with finance, don't send it it r-sig-finance. Thanks, Garrett On Thu, Jan 12, 2012 at 8:38 AM, Michael <comtech.usa at gmail.com> wrote:> Hi all, > > I have an array of 10000 x 200 x 200 numbers... which is a time-series of > 200x200 2D data... > > The 1st dimension is the time index. > > Is there a way to make a movie out of these data - i.e. playback 10000 > frames(200x200) at a playback rate per second? > > Thanks a lot! > > ? ? ? ?[[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Finance at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-finance > -- Subscriber-posting only. If you want to post, subscribe first. > -- Also note that this is not the r-help list where general R questions should go.
Sarah Goslee
2012-Jan-12 14:46 UTC
[R] how do I make a movie out of a timeseries of 2D data?
[deleted the annoying cross-posting] On Thu, Jan 12, 2012 at 9:38 AM, Michael <comtech.usa at gmail.com> wrote:> Hi all, > > I have an array of 10000 x 200 x 200 numbers... which is a time-series of > 200x200 2D data... > > The 1st dimension is the time index. > > Is there a way to make a movie out of these data - i.e. playback 10000 > frames(200x200) at a playback rate per second?I'd use R to create the sequence of images you need (named sequentially), then use ImageMagick's animate function. http://www.imagemagick.org/www/animate.html But you don't tell us what you are trying to do, so I have no way of knowing if that will work for you. Sarah -- Sarah Goslee http://www.functionaldiversity.org
If you need the animation in a file outside of R (or possibly in R) then look at the animation package. This allows you quite a few options on how to save an animation, some of which depend on outside programs, but options mean that if you don't have one of those programs there are other ways to do this. If you just want to explore this within R then the development version of the TeachingDemos package (on R-Forge) has added an animate control to the tkexamp function. Just create a function that takes the time index as the argument and creates the plot you want for each time, then run tkexamp using the animate control for the time argument. You will see a new window with the plot for the 1st time index along with a slider that will let you move through time and a button that will step through the remaining times automatically (you can specify the speed when running tkexamp). -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Michael Sent: Thursday, January 12, 2012 7:38 AM To: r-help; r-sig-finance Subject: [R] how do I make a movie out of a timeseries of 2D data? Hi all, I have an array of 10000 x 200 x 200 numbers... which is a time-series of 200x200 2D data... The 1st dimension is the time index. Is there a way to make a movie out of these data - i.e. playback 10000 frames(200x200) at a playback rate per second? Thanks a lot! [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org 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.
Seemingly Similar Threads
- HOW to Create Movies with R with repeated plot()?
- how to plot single frames as a movie?
- rgl: insert pauses in animation sequence / movie formats other than gif?
- [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...
- Animating a persp plot: non-constant scaling?