@gsimpson.bsky.socialGavin Simpson @gsimpson.bsky.social
2026-11-23 10:51 UTC
Change the colour of smooths, the fill of intervals and the look of diagnostic plots with ggplot2 theme settings. Use & to apply one theme to every panel of a gratia figure. Here both ozone smooths get purple lines and pale ribbons. #RStats
2 pictures (not shown on this phone): library("gratia") library("mgcv") library("ggplot2") fit <- gam(Ozone ~ s(Temp) + s(Wind), data = airquality, method = …
A reply in a thread.
1 likes, 0 reposts, 1 replies
3 Next post4 More from @gsimpson.bsky.socialBackBluesky home