Resistance.tran: Apply transformation to continuous resistance surface

View source: R/Resistance_transform.R

Resistance.tranR Documentation

Apply transformation to continuous resistance surface

Description

Apply one the eight resistance transformations to a continuous resistance surface

Usage

Resistance.tran(transformation, shape, max, scale, r, out)

Arguments

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

Details

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.

Value

R raster object

Author(s)

Bill Peterman <Peterman.73@osu.edu>

Examples

 
## Not run:
## *** TO BE COMPLETED *** ##

## End (Not run)

wpeterman/ResistanceGA documentation built on Nov. 20, 2023, 11:50 p.m.