[R] residuals in plot.gam (mgcv)

Toby.Patterson@csiro.au Toby.Patterson at csiro.au
Mon Jan 28 01:58:55 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 


-----Original Message-----
From: Simon Wood [mailto:snw at mcs.st-and.ac.uk]
Sent: 23 January, 2002 8:14 PM
To: Toby.Patterson at csiro.au
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] multiple surfaces in persp?


> Does anybody know if persp() can display multiple surfaces on the one
plot?
> If not is there any other functions/code that will do this. 

- you can do this using par(new=TRUE) between calls to persp() to get
plots overlayed: persp.gam() in package mgcv does this, for example.

 ______________________________________________________________________
> 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