Hello. I would like to know if there is a command for stopping between multiple grpahs. I have a for in which I create a graph in each iteration. I would like R to wait for a click or an enter to pass to the next graph. Does anybody know how can this be done. Thank you Felipe Parra [[alternative HTML version deleted]]
On Feb 7, 2011, at 10:42 PM, Luis Felipe Parra wrote:> Hello. I would like to know if there is a command for stopping between > multiple grpahs. I have a for in which I create a graph in each > iteration. I > would like R to wait for a click or an enter to pass to the next > graph. Does > anybody know how can this be done. Thank you >Some of the demos do that and I think plot.lm does it as well. Yep. See the ask parameter and note this section of the code: plot.lm <snipped> if (ask) { oask <- devAskNewPage(TRUE) on.exit(devAskNewPage(oask)) <snipped>> Felipe Parra > > [[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.David Winsemius, MD West Hartford, CT
Look at ?par and specifically the ask option. Or, you can use the pdf function to send a set of graphs directly to a pdf file, then open the pdf file and step through (and go back if you want) the graphs. -- 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 Luis Felipe Parra > Sent: Monday, February 07, 2011 8:42 PM > To: r-help > Subject: [R] Stopping between multiple graphs > > Hello. I would like to know if there is a command for stopping between > multiple grpahs. I have a for in which I create a graph in each > iteration. I > would like R to wait for a click or an enter to pass to the next graph. > Does > anybody know how can this be done. Thank you > > Felipe Parra > > [[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.