[R] plot.gam for glm objects.

Thomas Lumley tlumley at u.washington.edu
Mon Feb 3 16:27:03 CET 2003


On Mon, 3 Feb 2003 Toby.Patterson at csiro.au wrote:

> All,
>
> I was wondering if someone had come across the problem of producing partial
> regression plots for glm objects in R?
>
> When using Splus in the past I have passed glm objects to the plot.gam
> function.
> To my knowledge this functionality isn't included in R ( I would be happily
> corrected here) and if someone had some code floating around to do this it
> would save me re-inventing wheels etc.

It is included, in the termplot() function.  In fact help(plot.gam) takes
you to termplot (though it shouldn't as we now have a real plot.gam in the
mgcv package).

	-thomas




More information about the R-help mailing list