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

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 14 Jan 2006 - 21:17:18 EST

Deepayan Sarkar <deepayan.sarkar@gmail.com> writes:

> On 1/11/06, Leo G├╝rtler <leog@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)

I happened to need this today (some example() sections are a bit unhelpful without it) and the only way I figured it out was by recalling this recent thread. Any chance of putting a suitable pointer in the help pages for trellis.par.set and/or trellis.device?

-- 
   O__  ---- Peter Dalgaard             ěster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Jan 14 21:25:05 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:04 EST