[R-sig-Geo] maptools: appending data to SpatialPolygonsDataFrame
hkreft at ucsd.edu
hkreft at ucsd.edu
Wed Apr 30 06:04:06 CEST 2008
Dear all,
I am just starting to use the library maptools. Specifically, I want to
use it as a quick way to map results from various multivariate analyses
(e.g. cluster analyses) directly in R.
I encountered problems appending newly generated data (cluster
memberships) to the SpatialPolygonsDataFrame object. Unfortunately, the
documentation is not really helpful.
But I am sure that this is an easy question for you.
Thanks in advance,
Holger
The code so far:
> > my.polys <- readShapePoly("Z://mypoly.shp",IDvar="ID",verbose=T)
> > plot(my.polys)
More information about the R-sig-Geo
mailing list