Hi Group, Is there something like a delay function based on System time or equivalent? I basically am generating a few graphs and I would like to see each graph for say 2mins before moving on to the next one? I can always have an empty for-loop I guess but is there a better way? Thanks, S
?Sys.sleep On Fri, Nov 12, 2010 at 5:54 PM, Santosh Srinivas <santosh.srinivas at gmail.com> wrote:> Hi Group, > > Is there something like a delay function based on System time or equivalent? > I basically am generating a few graphs and I would like to see each graph > for say 2mins before moving on to the next one? > > I can always have an empty for-loop I guess but is there a better way? > > Thanks, > S > > ______________________________________________ > 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. >-- Michael Sumner Institute for Marine and Antarctic Studies, University of Tasmania Hobart, Australia e-mail: mdsumner at gmail.com
In addition to Michael's answer, look at the ?par help page and look at the ask argument, you can use this to have the graphics device wait for you to click before starting a new plot. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Santosh Srinivas > Sent: Thursday, November 11, 2010 11:54 PM > To: r-help at r-project.org > Subject: [R] Time Delay / Wait > > Hi Group, > > Is there something like a delay function based on System time or > equivalent? > I basically am generating a few graphs and I would like to see each > graph > for say 2mins before moving on to the next one? > > I can always have an empty for-loop I guess but is there a better way? > > Thanks, > S > > ______________________________________________ > 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.