plot_gam: GAM Quick Plot

View source: R/plot_gam.R

plot_gamR Documentation

GAM Quick Plot

Description

GAM Quick Plot

Usage

plot_gam(
  model,
  plot_x = NULL,
  ylab = NULL,
  xlab = NULL,
  ylims = NULL,
  xlims = NULL
)

Arguments

model

A mgcv::gam model object

plot_x

A column name for the axis of plot

ylab

A user-provided string for the y-axis

xlab

A user-provided string for x-axis

ylims

A numeric vector of length two for the y limits

Value

Plots the raw response against the first independent variable, then overlays a prediction ribbon.


ecodata-technology/ecodatamisc documentation built on Feb. 13, 2024, 11:54 a.m.