gavinsimpson / gratia

ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
https://gavinsimpson.github.io/gratia/
Other
206 stars 28 forks source link

Function not applied to error bands for parametric terms in gamm #195

Closed grasshoppermouse closed 2 years ago

grasshoppermouse commented 2 years ago

Screen Shot 2022-10-31 at 2 46 44 PM

gavinsimpson commented 2 years ago

Thanks for reporting this. I must have missed fixing this issue for parametric terms (it was fixed for smooths a version or two back 😭 )

FYI; draw() has a method for objects created by gamm() so you can just do draw(m) instead of draw(m$gam).

gavinsimpson commented 2 years ago

This is now fixed in GitHub. Thanks again for letting me know about the problem