rasterStewart: Create a Raster from a Stewart SpatialPointsDataFrame

Description Usage Arguments Value See Also Examples

View source: R/stewart.R

Description

This function creates a raster from a regularly spaced Stewart SpatialPointsDataFrame (output of the stewart function).

Usage

1
rasterStewart(x, mask = NULL)

Arguments

x

sp object (SpatialPointsDataFrame); output of the stewart function.

mask

sp object (SpatialPolygonsDataFrame); this object is used to clip the raster. (optional)

Value

Raster of potential values.

See Also

stewart, quickStewart, plotStewart, rasterToContourPoly, CreateGrid, CreateDistMatrix.

Examples

1
2
3
4
5
6
7
8
9
data(spatData)
# Compute Stewart potentials from known points (spatPts) on a
# grid defined by its resolution
mystewart <- stewart(knownpts = spatPts, varname = "Capacite",
                     typefct = "exponential", span = 1000, beta = 3,
                     resolution = 100, mask = spatMask)
# Create a raster of potentials values
mystewartraster <- rasterStewart(x = mystewart, mask = spatMask)
plot(mystewartraster)

SpatialPosition documentation built on Sept. 6, 2017, 5:04 p.m.