Learn R Programming

evgam (version 0.1.2)

plot.evgam: Plot a fitted evgam object

Description

Plot a fitted evgam object

Usage

# S3 method for evgam
plot(
  x,
  given.vals = NULL,
  use.image = FALSE,
  add.map = FALSE,
  map.env = "world",
  ...
)

Arguments

x

a fitted evgam object

given.vals

a list specifying variables values that are fixed.

use.image

logical: should image be used to represent two-dimensional smooths, as opposed to contour? Defaults to FALSE

add.map

logical: should a map outline be added to any two-dimensional smooths using map? Defaults to FALSE

map.env

a character string identifying the map to superimpose via map; defaults to "world"

...

unused

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