The plot command

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Noam Ross

Senior Research Scientist, EcoHealth Alliance

The plot command

plot(gam_model)
?plot.gam
Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Selecting partial effects

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

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing data on the plots

plot(gam_model, rug = TRUE)

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing data on the plots (2)

plot(gam_model, residuals = TRUE)

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing data on the plots (3)

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

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing standard errors

plot(gam_model, se = TRUE)

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing standard errors (2)

plot(gam_model, shade = TRUE)

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Showing standard errors

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

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Transforming standard errors

plot(gam_model, seWithMean = TRUE)

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Transforming standard errors (2)

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

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Now lets make some plots!

Pemodelan Nonlinier dengan Generalized Additive Models (GAM) di R

Preparing Video For Download...