[R] wait for user input

Ko-Kang@xtra.co.nz Ko-Kang at xtra.co.nz
Tue Feb 20 11:34:06 CET 2001


Take a look at:
    demo(graphics)
when you are in R.

You'll find that it does exactly what you want.  Looking into graphics.R
code, which is usually in $R_HOME\demos\graphics\ (at least it is in Windows
machine), you can see:
    par(ask = interactive(), .... )
at the beginning.

In other words, the if you put "ask = interactive()" (without quotation
mark) it should do the job.

Ko-Kang Wang


----- Original Message -----
From: "Bill Simpson" <wsi at gcal.ac.uk>
To: <r-help at stat.math.ethz.ch>
Sent: Tuesday, February 20, 2001 10:04 PM
Subject: [R] wait for user input


> 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().)
>
> Bill Simpson
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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