Calculates a hierarchical scale decomposition of topographic position index

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

Arguments

x

Object of class raster (requires integer raster)

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)

Value

raster class object

Note

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

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Examples

# \donttest{ library(raster) data(elev) hsp27 <- hsp(elev, 3, 27, 4, normalize = TRUE)
#> Calculating scale:27
#> Calculating scale:23
#> Calculating scale:19
#> Calculating scale:15
#> Calculating scale:11
#> Calculating scale:7
#> Calculating scale:3
#> Warning: no non-missing arguments to min; returning Inf
#> Warning: no non-missing arguments to max; returning -Inf
#> Warning: no non-missing arguments to min; returning Inf
plot(hsp27)
# }