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

Plot titles for `s(fac, continuous, bs = "re")` only use the first variable involved in the smooth #287

Closed gavinsimpson closed 6 months ago

gavinsimpson commented 6 months ago

Random effects smooths are currently labelled with just the variable involved in the smooth. But this doesn't work for random effects terms involving more than one variable, e.g. s(fac, continuous, bs = "re") or s(fac1, fac2, bs = "re") etc.

Replace the current title with the smooth label.