Learn R Programming

GeDS (version 0.3.1)

plot,GeDSgam-method: Plot method for GeDSgam objects.

Description

Plots on the linear predictor scale the component functions of a GeDSgam object fitted using NGeDSgam.

Usage

# S4 method for GeDSgam,ANY
plot(x, base_learners = NULL, f = NULL, n = 3L, ...)

Arguments

x

a GeDSgam-class object from which the GeDSgam fit(s) should be extracted.

base_learners

either NULL or a vector of character string specifying the base-learners of the model for which predictions should be plotted. Note that single base-learner predictions are provided on the linear predictor scale.

f

(optional) specifies the underlying component function or generating process to which the model was fit. This parameter is useful if the user wishes to plot the specified function/process alongside the model fit and the data.

n

integer value (2, 3 or 4) specifying the order (\(=\) degree \(+ 1\)) of the GAM-GeDS fit.

...

further arguments to be passed to the plot.default function.