This function is generic (see Methods); method functions can be written to handle specific classes of data. Classes which already have methods for this function include: gam, loess.
preplot(object, newdata)
gam.object <- gam(Kyphosis ~ s(Age,4) + Number, family = binomial,
data = kyphosis)
preob <- preplot(gam.object)
plot(preob, resid = T, se = T)