Learn R Programming

spatialEco (version 2.0-2)

hsp: Hierarchical Slope Position

Description

Calculates a hierarchical scale decomposition of topographic position index

Usage

hsp(
  x,
  min.scale = 3,
  max.scale = 27,
  inc = 4,
  win = "rectangle",
  normalize = FALSE
)

Value

terra SpatRaster class object of slope position

Arguments

x

A terra SpatRaster class object

min.scale

Minimum scale (window size)

max.scale

Maximum scale (window size)

inc

Increment to increase scales

win

Window type, options are "rectangle" or "circle"

normalize

Normalize results to 0-1 scale (FALSE | TRUE)

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Details

if win = "circle" units are distance, if win = "rectangle" units are number of cells

References

Murphy M.A., J.S. Evans, and A.S. Storfer (2010) Quantify Bufo boreas connectivity in Yellowstone National Park with landscape genetics. Ecology 91:252-261

Examples

Run this code
# \donttest{ 
  library(terra)
  elev <- rast(system.file("extdata/elev.tif", package="spatialEco"))
  hsp27 <- hsp(elev, 3, 27, 4, normalize = TRUE)
  plot(hsp27)
 # }

Run the code above in your browser using DataLab