The plot command

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Noam Ross

Senior Research Scientist, EcoHealth Alliance

The plot command

plot(gam_model)
?plot.gam
Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Selecting partial effects

plot(gam_model, select = c(2, 3))
plot(gam_model, pages = 1)
plot(gam_model, pages = 1, all.terms = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing data on the plots

plot(gam_model, rug = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing data on the plots (2)

plot(gam_model, residuals = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing data on the plots (3)

plot(gam_model, rug = TRUE, residuals = TRUE,
     pch = 1, cex = 1)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing standard errors

plot(gam_model, se = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing standard errors (2)

plot(gam_model, shade = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Showing standard errors

plot(gam_model, shade = TRUE, shade.col = "lightblue")

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Transforming standard errors

plot(gam_model, seWithMean = TRUE)

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Transforming standard errors (2)

plot(gam_model, seWithMean = TRUE, shift = coef(gam_model)[1])

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Now lets make some plots!

Niet-lineaire modellering met Generalized Additive Models (GAM's) in R

Preparing Video For Download...