Plotting using gratia::draw #294
-
I fit a GAM model: gam(y ~ trt, s(time, by=trt, method="REML"), where the response y is measured at times |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I would like to plot on the original scale of the response rather than on the partial effect scale. |
Beta Was this translation helpful? Give feedback.
-
What you're looking for is to predict from the model. This is usually done via
|
Beta Was this translation helpful? Give feedback.
-
I am plotting a multinomial GAM , one of my smooth terms is s(longitude, latitude). values seem to be on top of each other. Is there a way around it. Thank you |
Beta Was this translation helpful? Give feedback.
What you're looking for is to predict from the model. This is usually done via
predict()
, butgratia::fitted_values()
can will facilitate this: