plot_2D: 3D perspective plot for 2D smooth effects for 'pffr' models

Description Usage Arguments

View source: R/effect_plots.R

Description

This function produces 3D plots for 2D smooth effects of function-on-scalar models fitted with pffr. This function mainly does the same as mgcv::plot.gam(..., pers = TRUE). However, plot.gam only uses the shade argument for 1D smooths and doesn't pass it to the persp function. Such arguments not passed to persp can be used with this function.

Usage

1
plot_2D(model, select, theta = 30, phi = 30, ...)

Arguments

model

Function-on-scalar model fitted with pffr

select

Index of the smooth effect to be plotted

theta, phi

Some specific arguments for persp with changed default values

...

Further arguments passed to persp


bauer-alex/FoSIntro documentation built on Feb. 11, 2022, 8:33 a.m.