View source: R/nicheOverlapMetrics.r
nicheOverlapMetrics | R Documentation |
This function calculates several metrics of niche overlap based on predictions for two species (or for the same species but different models) at the same sites.
nicheOverlapMetrics(
x1,
x2,
method = c("meanDiff", "meanAbsDiff", "rmsd", "d", "i", "esp", "cor", "rankCor"),
w = rep(1, length(x1)),
na.rm = FALSE,
...
)
x1 |
Numeric. Vector of predictions from a model. |
x2 |
Numeric. Vector of predictions from another model. |
method |
Character vector, indicates type of metric to calculate:
|
w |
Numeric vector. Weights of predictions in |
na.rm |
Logical. If T |
... |
Other arguments (not used). |
List object with one element per value specified by the argument in method
.
Warren, D.L., Glor, R.E., and Turelli, M. 2008. Environmental niche equivalency versus conservatism: Quantitative approaches to niche evolution. Evolution 62:2868-2883. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.1558-5646.2008.00482.x")}
Warren, D.L., Glor, R.E., and Turelli, M. 2008. Erratum. Evolution 62:2868-2883. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.1558-5646.2010.01204.x")}
Godsoe, W. 2014. Inferring the similarity of species distributions using Species' Distribution Models. Ecography 37:130-136. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1111/j.1600-0587.2013.00403.x")}
compareResponse
x1 <- seq(0, 1, length.out=100)
x2 <- x1^2
nicheOverlapMetrics(x1, x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.