[R] Stopping between multiple graphs
David Winsemius
dwinsemius at comcast.net
Tue Feb 8 05:29:11 CET 2011
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
More information about the R-help
mailing list