data(auckland)
res <- EBlocal(spNamedVec("Deaths.1977.85", auckland),
9*spNamedVec("Under.5.1981", auckland), auckland.nb)
res.f <- as.ordered(cut(res$est*1000, breaks=c(-Inf,2,2.5,3,3.5,Inf),
include.lowest=TRUE))
cols <- grey(6:2/7)
plotpolys(auckpolys, auckbbs, col=cols[codes(res.f)])
legend(c(70,90), c(70,95), fill=cols, legend=levels(res.f), bty="n")
title(main="Local moment estimator of infant mortality per 1000 per year")
Run the code above in your browser using DataLab