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

Add legend to draw for fs splines ? #226

Closed remip48 closed 1 year ago

remip48 commented 1 year ago

Hello,

Is it possible to add a legend for the color of the fs splines of X, when fitted according to a factor Xt ? Xt + s(X, bs = 'cs') + s(X, by = Xt, bs = c('cs', 'fs'))

Thanks a lot

gavinsimpson commented 1 year ago

See #77