plotResponse: Visualise the response of the virtual species to...

Description

This function plots the relationships between the virtual species and the environmental variables.
It requires either the output from generateSpFromFun, generateSpFromPCA,
generateRandomSp,
or a manually defined set of environmental variables and response functions.

Usage

1
2

Arguments

x

the output from generateSpFromFun, generateSpFromPCA,
generateRandomSp, or
a raster layer/stack of environmental variables (see details for the latter).

parameters

in case of manually defined response functions, a list
containing the associated parameters. See details.

approach

in case of manually defined response functions, the chosen
approach: either "response" for a per-variable response approach, or
"pca" for a PCA approach.

rescale

TRUE or FALSE. If TRUE, individual response
plots are rescaled between 0 and 1.

axes.to.plot

a vector of 2 values listing the two axes of the PCA to plot.
Only useful for a PCA species.

no.plot.reset

TRUE or FALSE. If TRUE, the plot parameters
will be reset to their initial state after the response has been plotted.

...

further arguments to be passed to plot. See
plot and par.

Details

If you provide the output from generateSpFromFun, generateSpFromPCA or
generateRandomSp
then the function will automatically make the appropriate plots.

Otherwise, you can provide a raster layer/stack of environmental variables to
x and a list of functions to parameters to perform the plot.
In that case, you have to specifiy the approach: "reponse" or
"PCA":