Re: [R] Plot timer in a for loop

From: Ken Spriggs <ksspriggs_at_gmail.com>
Date: Tue, 10 Jun 2008 07:26:03 -0700 (PDT)

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,
>> 
>> 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 line
>
> Sys.sleep(0.5);
>
> to the loop should do this trick.
>
> Best regards, Jan
> --
> +- Jan T. Kim -------------------------------------------------------+
> | email: jtk_at_cmp.uea.ac.uk |
> | WWW: http://www.cmp.uea.ac.uk/people/jtk |
> *-----=< hierarchical systems are for files, not for humans >=-----*
>
> ______________________________________________
> 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.
>
>
-- 
View this message in context: http://www.nabble.com/Plot-timer-in-a-for-loop-tp17741975p17756771.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.
Received on Tue 10 Jun 2008 - 15:27:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 Jun 2008 - 15:30:40 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.

list of date sections of archive