Extract 2d smooth objects in tidy format.
tidy_smooth2d(
x,
keep = c("x", "y", "fit", "se", "xlab", "ylab", "main"),
ci = FALSE,
...
)a fitted gam object as produced by gam().
A vector of variables to keep.
A logical value indicating whether confidence intervals should be
calculated and returned. Defaults to TRUE.
Further arguments passed to plot.gam