search for: spkernel2d

Displaying 2 results from an estimated 2 matches for "spkernel2d".

Did you mean: kernel2d
2007 Dec 17
1
polygon class in splancs package
Dear forum, I would like to use the kernel2d or spkernel2d in the Splancs-package, but it does not recognize my polygon data. "Error in kernel2d(as.points(ptsbin), polygonprov, h0 = 2, nx = 100, : " is the error message. Invalid poly argument The data are defined as follows: polgonprov<-list(x=polyprov$X, y=polyprov$Y) with...
2009 Aug 18
0
kernel density estimation for univariate data using splancs
...im). Here is my code: coords <- S at polygons[[1]]@Polygons[[1]]@coords coord <- as.points(coords) cases1.xy <- as.points(mergedis$jit.x.x, mergedis$pre.fsa.shp.Y2) grd1 <- GridTopology(cellcentre.offset=c(50281627.2, 580082), cellsize=c(0.2, 0.2), cells.dim=c(75,100)) k1000 <- spkernel2d(cases1.xy, coord, h0=1000, grd1) k5000 <- spkernel2d(cases1.xy, coord, h0=5000, grd1) if (.sp_lt_0.9()) { df <- AttributeList(list(k1000=k1000, k5000=k5000)) } else { df <- data.frame(k1000=k1000, k5000=k5000) } kernels <- SpatialGridDataFrame(grd1, data=df) spplot(kernels, checkEmp...