Back to graph gallery

plotmo help page

plotmo-example2.png

Code

library(earth)
library(gam)
data(airquality)
airquality <- na.omit(airquality)  # plotmo doesn't know how to deal with NAs
plotmo(gam(Ozone^(1/3) ~ lo(Solar.R) + lo(Wind, Temp), data=airquality),
       caption="plotmo example 2: GAM model", 
       pch.response=20, col.response="blue",
       type2="image", ngrid=100, col.image=terrain.colors(100))

Back to graph gallery