Re: [R] Plot timer in a for loop

2008-06-10 Thread Ken Spriggs
So this works... Thanks. My mistake was leaving out seq_len() for (i in seq_len(nrow(Volumes))){ plot(as.numeric(deltas[i,])) Sys.sleep(0.5); } Ken Spriggs wrote: > > I appreciate the response but if this is what you have in mind I didn't > get anything different. > Any ideas why? > > f

Re: [R] Plot timer in a for loop

2008-06-10 Thread Ken Spriggs
The goal is to look at an evolution of a process over 400 steps. I don't really need to page back and forth so much as I'd like to just watch it like a flip book. jholtman wrote: > > Write it out to a PDF file and you can view at your leasure. On WIndows > you > have the option of paging b

Re: [R] Plot timer in a for loop

2008-06-10 Thread Ken Spriggs
I appreciate the response but if this is what you have in mind I didn't get anything different. Any ideas why? for (i in nrow(Volumes)){ plot(as.numeric(deltas[i,])) Sys.sleep(0.5); } Thanks Jan T. Kim wrote: > > On Mon, Jun 09, 2008 at 02:02:01PM -0700, Ken Spriggs wrote: >> >> Hello, >>

Re: [R] Plot timer in a for loop

2008-06-10 Thread Jan T. Kim
On Mon, Jun 09, 2008 at 02:02:01PM -0700, Ken Spriggs wrote: > > Hello, > > This code works fine but is so fast I can't see anything but the last plot. > > for (i in nrow(X)){ > plot(as.numeric(d[i,])) } > > I'd like to view a plot every 500 milliseconds, nrow(X) = 400. How? Adding the

Re: [R] Plot timer in a for loop

2008-06-09 Thread jim holtman
Write it out to a PDF file and you can view at your leasure. On WIndows you have the option of paging back and forth between the plots. On Mon, Jun 9, 2008 at 5:02 PM, Ken Spriggs <[EMAIL PROTECTED]> wrote: > > Hello, > > This code works fine but is so fast I can't see anything but the last plot