virtualspecies-package | R Documentation |
This package allows generating virtual species distributions, for example for testing species distribution modelling protocols. For a complete tutorial, see borisleroy.com/virtualspecies
The process of generating a virtual species distribution is divided into four major steps.
Generate a virtual species distributions from environmental variables. This can be done by
defining partial response functions to each environmental
variable, and then combining them to compute the overall environmental
suitability,
with generateSpFromFun
computing a PCA among
environmental variables, and simulating the response of the species along
the two first axes of the PCA with generateSpFromPCA
This step can be randomised with generateRandomSp
Convert the virtual species distribution into presence-absence, with
convertToPA
Facultatively, introduce a distribution bias with
limitDistribution
Sample occurrence points (presence only or presence-absence) inside the
virtual species distribution, either randomly or with biases, with
sampleOccurrences
There are other useful functions in the package:
formatFunctions
: this is a helper function to format and
illustrate the response functions as a correct input for
generateSpFromFun
plotResponse
: to visualise the species-environment
relationship
of the virtual species
removeCollinearity
: this function can be used to remove
collinearity among variables of a stack by selecting a subset of
non-colinear variables
synchroniseNA
: this function can be used to synchronise
NA values among layers of a stack
This packages makes use of different other packages:
This package makes extensive use of the package terra
to obtain spatialised
environmental variables, and produce spatialised virtual
species distributions.
ade4
is used to generate species with a PCA approach.
rnaturalearth
is used to obtain free world shapefiles,
in order to create
dispersal limitations and sampling biases.
Boris Leroy leroy.boris@gmail.com
with help from C. N. Meynard, C. Bellard & F. Courchamp
Maintainer: Boris Leroy leroy.boris@gmail.com
Leroy, B. et al. 2016. virtualspecies, an R package to generate virtual species distributions. Ecography. 39(6):599-607
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.