[R] residuals in plot.gam (mgcv)
Simon Wood
snw at mcs.st-and.ac.uk
Mon Jan 28 11:01:19 CET 2002
> Is there a way to add residuals to plots produced by plot.gam in the mgcv
> package? I'm looking for something like what you get using resid=T in Splus
> plot.gam.
>
> Thanks in advance
> Toby
- It's on my "to do" list, but isn't there yet - sorry (mgcv doesn't
backfit so the partial residuals aren't just sitting there waiting to be
plotted). Of course you can add residuals of your own by using the
`select' argument to plot.gam() to produce single term plots, and then
using points() to add the residuals, but this isn't very convenient.
Simon
______________________________________________________________________
> Simon Wood snw at st-and.ac.uk http://www.ruwpa.st-and.ac.uk/simon.html
> The Mathematical Institute, North Haugh, St. Andrews, Fife KY16 9SS UK
> Direct telephone: (0)1334 463799 Indirect fax: (0)1334 463748
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list