[R-sig-Geo] knn2nb

Sabira el Messlaki S.elMesslaki at student.TUDelft.NL
Tue Aug 24 16:38:27 CEST 2010


Dear list members,

I want to plot a neighbours list of class nb. I thought that the plot would show 8 neighbour lines. But this is not the case for my plot. Did I do something wrong?

col.knn2nb<-knn2nb(knearneigh(coords, k=8, longlat=F))

plot(coords, border="grey")
plot(col.knn2nb, coords, xlim=NULL, ylim=NULL, add=TRUE)

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100824/d6e3902c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knn.jpeg
Type: image/jpeg
Size: 28959 bytes
Desc: knn.jpeg
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20100824/d6e3902c/attachment.jpeg>


More information about the R-sig-Geo mailing list