Chapter 7: Code and Figures

R Code

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


Figure 7.7

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

gp <- grey.colors(5, 0.9, 0.45, 2.2)

print(spplot(kernels, at=seq(0,2000,length.out=22),
names.attr=c(paste("Quartic bw=",bw, sep="", collapse=""),
"Quartic bw=0.05", "Quartic bw=0.1","Quartic bw=0.15", 
paste("Gaussian bw=",.5*bw, sep="", collapse=""),
 "Gaussian bw=0.025", "Gaussian bw=0.05","Gaussian bw=0.075") ) )