This function plots the raster produced by the
raster; output of the
logical; if TRUE the raster is added to the current plot, if FALSE the raster is displayed in a new plot.
Display the raster nicely.
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) plotHuff(myhuffraster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.