[R-sig-Geo] conversion to polygons
Luis Ridao Cruz
Luisr at frs.fo
Wed Jun 14 11:48:37 CEST 2006
R-Sig-Geo help,
I have an objct of class "SpatialPointsDataFrame"
which I woul like to convert to polygon.
I have used the following:
test1<-Polygon(test)
test2<-SpatialPolygons(list(test),1)
plot(test2,col=2,pbg="white")
but I get en error message like this:
Error in as.list(X) : cannot get a slot ("Polygons") from an object of
type "double"
I also try ploting:
plot(test1)
which gives :
Error in plot.window(xlim, ylim, log, asp, ...) :
need finite 'xlim' values
In addition: Warning messages:
1: no non-missing arguments to min; returning Inf
2: no non-missing arguments to max; returning -Inf
3: no non-missing arguments to min; returning Inf
4: no non-missing arguments to max; returning -Inf
Thank you in advance
More information about the R-sig-Geo
mailing list