These have been deprecated and will be removed in a future release.
Usage
gsGOC(
mpg,
nThresh = NULL,
doThresh = NULL,
weight = "lcpPerimWeight",
sp = FALSE,
verbose = 3
)
gsGOCCorridor(GOC, whichThresh, coords, doPlot = FALSE, weight = "meanWeight")
gsGOCDistance(GOC, coords, weight = "meanWeight")
gsGOCPoint(GOC, coords)
gsGOCVisualize(GOC, whichThresh, sp = FALSE, doPlot = FALSE)
visualize(GOC, whichThresh, sp = FALSE, doPlot = FALSE)
gsGraphDataFrame(x)
gsMPG(cost, patch, sa = NULL, filterPatch = NULL, spreadFactor = 0)Arguments
- mpg
A
mpgobject.- nThresh
Optional. An integer giving the number of thresholds (or scales) at which to create GOC models. Thresholds are selected to produce a maximum number of unique grains (i.e., models).
nThreshthresholds are also approximately evenly spread between 0 and the threshold at which all patches or focal points on the landscape are connected. This is a simple way to get a representative subset of all possible GOC models. Provide eithernThreshordoThreshnot both.- doThresh
Optional. A vector giving the link thresholds at which to create GOC models. Use
threshold()to identify thresholds of interest. Provide eithernThreshordoThreshnot both.- weight
A string giving the link weight or attribute to use for threshold.
"lcpPerimWeight"uses the accumulated resistance or least-cost path distance from the perimeters of patches as the link weight.- sp
Logical. If
TRUEthesppackage is used to create a vector of class sp::SpatialPolygonsDataFrame describing the finest grain of connectivity.- verbose
Set
verbose=0for no progress information to console.- GOC
A
gocobject.- whichThresh
Integer giving the index of the threshold to visualize.
- coords
A two column matrix or a sp::SpatialPoints object giving coordinates at the end points of the corridor.
- doPlot
Logical. If
TRUEplots a vector visualization of the corridor at the given scale- x
A
mpgobject produced byMPG(). For lattice GOCMPGmust be run with patch set as an integer value.- cost
A
RasterLayergiving a landscape resistance surface, where the values of each raster cell are proportional to the resistance to movement, dispersal, or gene flow for an organism in the landscape feature they represent. Missing valuesNAare acceptable (but see below). Negative values are not. To extract an MPG with Euclidean links (i.e., and not least-cost path links) setcost[] <- 1.- patch
A raster of class
RasterLayerfor a patch-based analysis OR an integer for a lattice analysis. If a raster is given it must be of the same extent, origin and projection ascostand be binary, without missing values, where patches=1 and non-patches=0. For lattice analyses, an integer gives the spacing in raster cells between focal points in the lattice.- filterPatch, sa, spreadFactor
No longer used.