View source: R/Resistance_transform.R
Resistance.tran | R Documentation |
Apply one the eight resistance transformations to a continuous resistance surface
Resistance.tran(transformation, shape, max, scale, r, out)
transformation |
Transformation equation to apply. Can be provided as the name of the transformation or its numeric equivalent (see details) |
shape |
Value of the shape parameter |
max |
Value of the maximum value parameter |
scale |
The standard deviation, in number of raster cells, to use when applying Gaussian kernel smoothing. This is the 'sigma' parameter in the 'spatstat::blur' function. (Default = NULL) |
r |
Resistance surface to be transformed. Can be supplied as full path to .asc file or as a raster object |
out |
Directory to write transformed .asc file. Default is NULL, and will not export .asc file |
Valid arguements for transformation
are:
1 = "Inverse-Reverse Monomolecular" | |
2 = "Inverse-Reverse Ricker" | |
3 = "Monomolecular" | |
4 = "Ricker" | |
5 = "Reverse Monomolecular" | |
6 = "Reverse Ricker" | |
7 = "Inverse Monomolecular" | |
8 = "Inverse Ricker" | |
9 = "Distance" | |
The Distance transformation sets all values equal to one. Because of the flexibility of the Ricker function to take a monomolecular shape (try Plot.trans(PARM=c(10,100), Resistance=c(1,10), transformation="Ricker")
to see this), whenever a shape parameter >6 is selected in combination with a Ricker family transformation, the transformation reverts to a Distance transformation. In general, it seems that using a combination of intermediate Ricker and Monomolecular transformations provides the best, most flexible coverage of parameter space.
R raster object
Bill Peterman <Peterman.73@osu.edu>
## Not run:
## *** TO BE COMPLETED *** ##
## End (Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.