Skip to content
Prev 79058 / 398502 Next

lattice with predicted values

On 10/14/05, Martin Henry H. Stevens <HStevens at muohio.edu> wrote:
A not very satisfactory (but probably good enough for linear fits) is

pred <- predict(mod)

xyplot(Y ~ COV | FACT, pred = pred,
       panel = function(x, y, pred, subscripts, ...) {
           panel.xyplot(x,y,...)
           llines(x, pred[subscripts], ...)
       })

Deepayan