data(afcon)
moran.plot(spNamedVec("totcon", afcon), nb2listw(paper.nb),
labels=as.character(afcon$name), pch=19)
moran.plot(scale(spNamedVec("totcon", afcon)), nb2listw(paper.nb),
labels=as.character(afcon$name), xlim=c(-2, 4), ylim=c(-2,4), pch=19)
Run the code above in your browser using DataLab