Create a Raster from a Huff SpatialPointsDataFrame
This function creates a raster from a regularly spaced
Huff SpatialPointsDataFrame (output of the
sp object (SpatialPointsDataFrame); output of the
sp object (SpatialPolygonsDataFrame); this object is used to clip the raster. (optional)
Raster of catchment areas values.
huff, rasterHuff, plotHuff, CreateGrid, CreateDistMatrix.
1 2 3 4 5 6 7 8 9
data(spatData) # Compute Huff catchment areas from known points (spatPts) on a # grid defined by its resolution myhuff <- huff(knownpts = spatPts, varname = "Capacite", typefct = "exponential", span = 750, beta = 2, resolution = 100, mask = spatMask) # Create a raster of huff values myhuffraster <- rasterHuff(x = myhuff, mask = spatMask) plot(myhuffraster)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.