estimate_niche: Spatial Abundance Density Index

View source: R/estimate_niche.R

estimate_nicheR Documentation

Spatial Abundance Density Index

Description

Estimates the occurrence density index of a set of occurrences over a 2-D grid space

Usage

estimate_niche(
  glob,
  glob1,
  sp,
  R,
  h = "href",
  mask = NULL,
  th.o = NULL,
  th.s = NULL,
  method = c("epa", "bivnorm")
)

Arguments

glob

2-column coordinates matrix of the environmental space

glob1

2-column coordinates matrix of the subset environmental space

sp

2-column coordinates matrix of the species occurrences position on the environmental space

R

extent of the raster to be created

h

smoothing parameter for the kernel estimation. Default is 'href'. Alternatively can be set to 'LSCV' or any given numeric value

mask

raster mask to resample the created kernel density grid raster

th.o

numeric threshold to filter density values of occurrences

th.s

numeric threshold to filter density values of environment

method

"epanechnikov" or "bivnorm"

Value

list object class niche

Examples

## Not run: 
env <- cbind(runif(1000, -1, 5), runif(1000, -2, 10))
sp <- cbind(runif(10, -1, 5), runif(10, -2, 10))
niche<- estimate_niche(sp, ext = c(-1,5,-2,10))
ecospat::ecospat.plot.niiche(niche)

## End(Not run)


agarciaEE/NINA documentation built on Jan. 9, 2025, 10:09 a.m.