# NOT RUN {
data(nydf)
data(nyw)
coords = with(nydf, cbind(x, y))
out = bn.test(coords = coords, cases = nydf$cases,
pop = nydf$pop, cstar = 6,
alpha = 0.1)
plot(out)
data(nypoly)
library(sp)
plot(nypoly, col = color.clusters(out))
# }
Run the code above in your browser using DataLab