plotHuff: Plot a Huff Raster

Description Usage Arguments Value See Also Examples

Description

This function plots the raster produced by the rasterHuff function.

Usage

1
plotHuff(x, add = FALSE)

Arguments

x

raster; output of the rasterHuff function.

add

logical; if TRUE the raster is added to the current plot, if FALSE the raster is displayed in a new plot.

Value

Display the raster nicely.

See Also

huff, rasterHuff, plotHuff, CreateGrid, CreateDistMatrix.

Examples

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)
plotHuff(myhuffraster)


Search within the SpatialPosition package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.