library(spdep)library(maps)library(maptools)library(classInt)library(RColorBrewer)##Create an adjacency matrix for the states in the USusa.state = map(database="state", fill=TRUE, plot=FALSE)state.ID