Chapter 10: Code and Figures

R Code

All verbatim chunk codes used in the Chapter are available in lat2.R

Figures

Figure 10.5

Click on figure to go back to Chapter gallery. Please see preceeding chunks for values not set in this chunk (lat2-048.R).

library(RColorBrewer)
TCEpts <- list("sp.points", TCE, pch=16, col="grey5")
spplot(NY8, "lmpresid", sp.layout=list(TCEpts), col.regions=grey.colors(9, 0.95, 0.55, 2.2), at=seq(-3,5,length.out=9))