View source: R/estimate_niche.R
estimate_niche | R Documentation |
Estimates the occurrence density index of a set of occurrences over a 2-D grid space
estimate_niche(
glob,
glob1,
sp,
R,
h = "href",
mask = NULL,
th.o = NULL,
th.s = NULL,
method = c("epa", "bivnorm")
)
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" |
list object class niche
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.