|
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]] ______________________________________________ [hidden email] 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. |
|
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 <[hidden email]> 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]] > > _______________________________________________ > [hidden email] 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. ______________________________________________ [hidden email] 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. |
|
In reply to this post by LosemindL
[deleted the annoying cross-posting]
On Thu, Jan 12, 2012 at 9:38 AM, Michael <[hidden email]> 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 ______________________________________________ [hidden email] 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. |
|
I usually display each 200x200 data as a heatmap...
And now I only need to make a movie out of them... I don't have ImageMagick (not admin)... Any more pointers? Thanks a lot! On Thu, Jan 12, 2012 at 8:46 AM, Sarah Goslee <[hidden email]>wrote: > [deleted the annoying cross-posting] > > On Thu, Jan 12, 2012 at 9:38 AM, Michael <[hidden email]> 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 > [[alternative HTML version deleted]] ______________________________________________ [hidden email] 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. |
|
In reply to this post by Sarah Goslee
Basically I wanted to find an equivalent of the following Matlab command in
R: http://www.mathworks.com/help/toolbox/images/ref/immovie.html On Thu, Jan 12, 2012 at 8:46 AM, Sarah Goslee <[hidden email]>wrote: > [deleted the annoying cross-posting] > > On Thu, Jan 12, 2012 at 9:38 AM, Michael <[hidden email]> 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 > [[alternative HTML version deleted]] ______________________________________________ [hidden email] 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. |
|
In reply to this post by LosemindL
On Thu, Jan 12, 2012 at 9:59 AM, Michael <[hidden email]> wrote:
> I usually display each 200x200 data as a heatmap... > > And now I only need to make a movie out of them... That was the part I was querying: do you need to be able to upload this to YouTube? Embed in a presentation? Look at it by yourself on your own workstation? > I don't have ImageMagick (not admin)... Install it locally. Sarah -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ [hidden email] 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. |
|
In reply to this post by LosemindL
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: [hidden email] [mailto:[hidden email]] 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]] ______________________________________________ [hidden email] 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. ______________________________________________ [hidden email] 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. |
| Powered by Nabble | Edit this page |
