Learn R Programming

zetadiv (version 1.2.1)

Return.ispline: Computing splines coordinates from I-spline-based multi-site generalised dissimilarity modelling

Description

Stores the coordinates of the I-splines resulting from Zeta.msgdm for plotting.

Usage

Return.ispline(msgdm, data.env, distance = FALSE, biotic = 0)

Arguments

msgdm

Output of function Zeta.msgdm computed with reg.type = ispline.

data.env

Site-by-variable data frame used for the computation of msgdm, with sites as rows and environmental variables as columns.

distance

Boolean, indicates is distance was used in the computation of msgdm.

biotic

Integer, indicates the number of other groups of taxa for which zeta diversity was computed and used in the computation of msgdm.

Value

Return.ispline returns a list containing the following components used to plot the I-splines:

env

A data frame containing the rescaled environmental (numeric and factor), distance and biotic x-values.

Ispline

A data frame containing the I-spline values corresponding to the rescaled environmental (numeric and factor), distance and biotic x-values.

Details

Return.ispline allows to store the same number of coordinates for all I-splines, to average replicates and obtain confidence intervals.

See Also

Zeta.msgdm, Ispline

Examples

Run this code
# NOT RUN {
utils::data(Marion.species)
xy.marion <- Marion.species[1:2]
data.spec.marion <- Marion.species[3:33]

utils::data(Marion.env)
data.env.marion <- Marion.env[3]

zeta.ispline <- Zeta.msgdm(data.spec.marion, data.env.marion, xy.marion, sam = 100,
    order = 3, normalize = "Jaccard", reg.type = "ispline")
zeta.ispline
zeta.ispline.r <- Return.ispline(zeta.ispline, data.env.marion, distance = TRUE)
zeta.ispline.r

dev.new()
Plot.ispline(isplines = zeta.ispline.r, distance = TRUE)

dev.new()
Plot.ispline(msgdm = zeta.ispline, data.env = data.env.marion, distance = TRUE)

# }

Run the code above in your browser using DataLab