
Last chance! 50% off unlimited learning
Sale ends in
plot.listw
is a wrapper that passes its neighbours component to plot.nb
.
"plot"(x, coords, col="black", points=TRUE, add=FALSE, arrows=FALSE, length=0.1, xlim=NULL, ylim=NULL, ...)
"plot"(x, coords, col="black", points=TRUE, add=FALSE, arrows=FALSE, length=0.1, xlim=NULL, ylim=NULL, ...)
nb
or (for plot.listw
) class listw
par(..)
summary.nb
example(columbus)
coords <- coordinates(columbus)
plot(col.gal.nb, coords)
title(main="GAL order 1 links with first nearest neighbours in red")
col.knn <- knearneigh(coords, k=1)
plot(knn2nb(col.knn), coords, add=TRUE, col="red", length=0.08)
Run the code above in your browser using DataLab