tidy_smooth2d: Extract 2d smooth objects in tidy format.

View source: R/tidiers.R

tidy_smooth2dR Documentation

Extract 2d smooth objects in tidy format.

Description

Extract 2d smooth objects in tidy format.

Usage

tidy_smooth2d(
  x,
  keep = c("x", "y", "fit", "se", "xlab", "ylab", "main"),
  ci = FALSE,
  ...
)

Arguments

x

a fitted gam object as produced by gam().

keep

A vector of variables to keep.

ci

A logical value indicating whether confidence intervals should be calculated and returned. Defaults to TRUE.

...

Further arguments passed to plot.gam


pammtools documentation built on July 26, 2023, 6:07 p.m.