Skip to content
Prev 383390 / 398502 Next

Add GAM fit on the plot ?

On 4/22/20 3:29 PM, varin sacha via R-help wrote:
`plot` and `lines` will accept a list with named components 'x' and 'y'? 
as its first argument.? The `mgcv:gam` function does not return such a 
value. Read (and examine the code for the functions):

?lines

?points

?scatter.smooth

library(mgcv)

?gamObject

# And then read

?predict.gam ? # to see what might be useful as a y-argument to lines

# and do look at the Examples section of ?perdict.gam