Extracts original data for smooth terms, formats them in long/tidy format, then nests the data column(s) such that the result is a nested data frame with one row per smooth.
nested_rug_values(object, terms = NULL, data = NULL)
A nested tibble (data frame) with one row per smooth term.
a fitted GAM model
a vector of terms to include original data for. Passed to
argument terms
of mgcv::predict.gam()
].
optional data frame