Learn R Programming

evgam (version 0.1.4)

plot.evgam: Plot a fitted evgam object

Description

Plot a fitted evgam object

Usage

# S3 method for evgam
plot(x, onepage = TRUE, which = NULL, main, ask = !onepage, ...)

Arguments

x

a fitted evgam object

onepage

logical: should all plots be on one page, or on separate pages? Defaults to TRUE

which

a vector of integers identifying which smooths to plot. The default NULL plots all smooths

main

a character string or vector of plot titles for each plot. If not supplied default titles are used

ask

logical: ask to show next plots if too many figures for current device?

...

extra arguments to pass to plot.gam

Value

Plots representing all one- or two-dimensional smooths

Examples

Run this code
# NOT RUN {
data(fremantle)
fmla_gev <- list(SeaLevel ~ s(Year, k=5, bs="cr"), ~ 1, ~ 1)
m_gev <- evgam(fmla_gev, fremantle, family = "gev")
plot(m_gev)

# }

Run the code above in your browser using DataLab