[R] wait for user input

Martyn Plummer plummer at iarc.fr
Tue Feb 20 10:27:57 CET 2001


On 20-Feb-01 Bill Simpson wrote:
> I want to display a series of plots:
> 
> display plot 1
> wait for user input (keypress or mouse click)
> display plot 2
> etc
> 
> How to do it? Thanks for any help.
> (I have been using locator().)

par(ask=TRUE)

You press return (at the console, not the graphics device window) to
see the next plot.
Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list