Displaying 1 result from an estimated 1 matches for "depthmap".
Did you mean:
depmap
2012 Feb 23
1
using shapefiles in adehabitat/ converting shapefile to spatial pixel data frame
...n perform many of the analysis in AdehabitatHS,
I have tried converting the shapefile to a spatial pixel data frame using the sp package by exporting the data from the attribute table in my depth shapefile then importing it into R as a csv file (see my attempts below)
>depth<-read.csv("depthmap.csv")
>pts = depth[c("x", "y")]
>y = SpatialPixels(SpatialPoints(pts))
suggested tolerance minimum: 1
Error in points2grid(points, tolerance, round) :
dimension 1 : coordinate intervals are not constant
> depth<-read.csv("a.csv")
> coordinates(de...