Skip to content
Prev 68494 / 398506 Next

panel ordering in nlme and augPred plots

On Monday 25 April 2005 09:40, Petr Pikal wrote:
Could you give us a reproducible example? Following the example on the 
help page

fm <- lme(Orthodont)
plot(Orthodont)
plot(augPred(fm, level = 0:1))

gives me the same ordering on both plots.
Possibly. plot.augPred produces a Trellis plot, and usually arguments to 
the underlying plotting function can be passed on through the top-level 
call. e.g., with the Orthodont data

plot(augPred(fm1, level = 0:1), skip = rep(c(F,T), c(16, 2)))

or 

p <- plot(augPred(fm1, level = 0:1))
update(p, skip = rep(c(F,T), c(16, 2)))

You would of course have to know what valid arguments are; for that 
see ?xyplot and ?update.trellis (in the lattice package).

Deepayan