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

Issue with draw() when cyclic p-splines are part of the mgcv GAM #297

Closed Zuckerbrot closed 4 months ago

Zuckerbrot commented 4 months ago

When using a smooth with cyclic p-spline basis (bs="cp"), the fitted mgcv model can not be drawn, i.e. draw(model) gives "Unknown type of smooth“

gavinsimpson commented 4 months ago

Thanks; that was a silly mistake on my part (two mistakes actually). Now fixed