[R] Plotting GAM fit using RGL

2013-08-15 Thread Lucas Holland
Hello all, I’ve fitted a bivariate smoothing model (with GAM) to some data, using two explanatory variables, x and y. Now I’d like to add the surface corresponding to my fit to a 3D scatterplot generated using plot3d(). My approach so far is to create a grid of x and y values and the correspo

Re: [R] Plotting GAM fit using RGL

2013-08-15 Thread David Winsemius
On Aug 15, 2013, at 2:23 AM, Lucas Holland wrote: > Hello all, > > I’ve fitted a bivariate smoothing model (with GAM) to some data, using two > explanatory variables, x and y. Now I’d like to add the surface > corresponding to my fit to a 3D scatterplot generated using plot3d(). > > My appr

Re: [R] Plotting GAM fit using RGL

2013-08-16 Thread Duncan Murdoch
On 13-08-15 1:15 PM, David Winsemius wrote: On Aug 15, 2013, at 2:23 AM, Lucas Holland wrote: Hello all, I’ve fitted a bivariate smoothing model (with GAM) to some data, using two explanatory variables, x and y. Now I’d like to add the surface corresponding to my fit to a 3D scatterplot ge

Re: [R] Plotting GAM fit using RGL

2013-08-16 Thread David Winsemius
On Aug 16, 2013, at 10:55 AM, Duncan Murdoch wrote: > On 13-08-15 1:15 PM, David Winsemius wrote: >> >> On Aug 15, 2013, at 2:23 AM, Lucas Holland wrote: >> >>> Hello all, >>> >>> I’ve fitted a bivariate smoothing model (with GAM) to some data, using two >>> explanatory variables, x and y. N