plot.ppgam: Plots smooths of a fitted 'ppgam' object

View source: R/s3.R

plot.ppgamR Documentation

Plots smooths of a fitted ppgam object

Description

Plots smooths of a fitted ppgam object

Usage

## S3 method for class 'ppgam'
plot(x, ...)

Arguments

x

a fitted ppgam object

...

arguments to be passed to mgcv::plot.gam

Value

Simulations of parameters

See Also

plot.gam

Examples


# Times of landfalling US hurricanes
data(USlandfall)

# convert dates to years, as a continuous variable
year <- as.integer(format(USlandfall$date, "%Y"))
day <- as.integer(format(USlandfall$date, "%j"))
USlandfall$year <- year + pmin(day / 365, 1)
hits <- subset(USlandfall, landfall == 1)

# this creates nodes in the default way
m1 <- ppgam( ~ s(year), hits)
plot(m1)


ppgam documentation built on Sept. 11, 2024, 7:12 p.m.

Related to plot.ppgam in ppgam...