Learn R Programming

neuralGAM (version 2.0.1)

plot.neuralGAM: Visualization of neuralGAM object with base graphics

Description

Visualization of a fitted neuralGAM. Plots learned partial effects, either as scatter/line plots for continuous covariates or s for factor covariates. Confidence intervals can be added if available.

Usage

# S3 method for neuralGAM
plot(
  x,
  select = NULL,
  xlab = NULL,
  ylab = NULL,
  interval = c("none", "confidence", "prediction", "both"),
  level = 0.95,
  ...
)

Value

Produces plots on the current graphics device.

Arguments

x

A fitted neuralGAM object as produced by neuralGAM().

select

Character vector of terms to plot. If NULL (default), all terms are plotted.

xlab

Optional custom x-axis label(s).

ylab

Optional custom y-axis label(s).

interval

One of c("none","confidence","prediction","both"). Default "none". Controls whether intervals are plotted.

level

Coverage level for intervals (e.g. 0.95). Default 0.95.

...

Additional graphical arguments passed to plot().

Author

Ines Ortega-Fernandez, Marta Sestelo.