Question about "col.gal.nb" object
Am 11.05.2012 19:58, schrieb Eder Gerardo Qui?ones Sanchez:
Hi, i'm using the 'col.gal.nb' object for the definition of all neighbors. my information is loaded from a archives into may pc
Though someone might accidentally know what col.gal.nb is and where it comes from, having told us here would have been much nearer to 'reproducible'.
*library(spdep)* * * *city<- readOGR(dsn="C:/cities", layer="city1")* *coords<- coordinates(city)* * * *plot(col.gal.nb, coords, add=TRUE)* *Error: length(nb) == nrow(coords) is not TRUE*
If you refer to the documentation of the plot method you are using here,
I suspect you find out that 'nb' refers to the first argument and
'coords' to the second. The error message tells you they need to fulfil
the condition given in the message ('length(nb) == nrow(coords)' is
actually an R expression!).
HTH,
Tom
but when i try to draw it, an error appears. i don't know what could be the error...
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Technische Universit?t M?nchen Department f?r Pflanzenwissenschaften Lehrstuhl f?r Gr?nlandlehre Alte Akademie 12 85350 Freising / Germany Phone: ++49 (0)8161 715324 Fax: ++49 (0)8161 713243 email: tom.gottfried at wzw.tum.de http://www.wzw.tum.de/gruenland