plot 명령어

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

Noam Ross

Senior Research Scientist, EcoHealth Alliance

plot 명령어

plot(gam_model)
?plot.gam
R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

부분 효과 선택

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

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

플롯에 데이터 표시

plot(gam_model, rug = TRUE)

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

플롯에 데이터 표시 (2)

plot(gam_model, residuals = TRUE)

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

플롯에 데이터 표시 (3)

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

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

표준 오차 표시

plot(gam_model, se = TRUE)

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

표준 오차 표시 (2)

plot(gam_model, shade = TRUE)

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

표준 오차 표시

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

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

표준 오차 변환

plot(gam_model, seWithMean = TRUE)

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

표준 오차 변환 (2)

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

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

이제 플롯을 만들어 봅시다!

R로 배우는 Generalized Additive Models (GAMs): 비선형 모델링

Preparing Video For Download...