[R] how to obtain "par(ask=TRUE)" with trellis-plots

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Jan 11 17:22:42 CET 2006


On 1/11/06, Leo GÃ¼rtler <leog at anicca-vijja.de> wrote:
> Dear alltogether,
>
> how can a delay like possible with par(ask=TRUE) be attained while using
> trellis-plots within a loop or something like that?
> the following draws each plot without waiting for a signal
> (mouse-klick), so par() does not work for that:
>
> library(nlme)
> for(i in 1:3)
> {
>   fitlme <- lme(Orthodont)
>   par(ask=TRUE)                     # does not work with trellis....
>   print( plot(augPred(fitlme)) )
> }

See ?grid.prompt in the grid package. To use it you can either attach
grid, or do

grid::grid.prompt(TRUE)

Deepayan
--
http://www.stat.wisc.edu/~deepayan/




More information about the R-help mailing list