spacodi.calc: measuring spatial and phylogenetic structuring of diversity...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/spacodi.calc.R

Description

Considering species-, phylogenetic-, or trait-diversities, this function measures diversity structuring of community samples.

Usage

1
spacodi.calc(sp.plot, phy = NULL, sp.traits = NULL, all.together = TRUE, prune = TRUE, pairwise = FALSE, ...)

Arguments

sp.plot

a community dataset in spacodiR format (see as.spacodi)

phy

a phylogenetic tree of class phylo or evolutionary distance matrix between species (see cophenetic.phylo)

sp.traits

a species-by-trait(s) dataframe or a species traits distance matrix (see dist)

all.together

Boolean; whether to treat all traits together or separately

prune

Boolean; whether to dynamically prune datasets if mismatches occur

pairwise

Boolean; whether to return pairwise diversity measures amongst all plots

...

additional arguments to be passed to match.spacodi.data

Details

spacodi.calc requires a community dataset (species-by-plots matrix; sp.plot) of numerical abundance, relative abundance, or presence | absence for plots. spacodi.calc returns statistics of diversity partitioning of plots, considering species diversity and, if additional information is provided, either trait or phylogenetic diversities among plots. If phy=NULL and sp.traits=NULL, a measure of partitioning for species diversity will be returned.

In treating each pair of plots as a community unto its own, pairwise=TRUE will return estimates for diversity structuring for all pairwise combinations of plots.

If a phylogeny or trait dataset is supplied with species that are not present in the community dataset (i.e., sp.plot) or vice versa, the user has the option to dynamically prune these datasets to match (prune=TRUE). If prune=FALSE and dataset mismatches occur, the function will inevitably return NaN where plots have fewer than two distinct species sampled.

For proper display, please view the package manual online (http://cran.r-project.org/web/packages/spacodiR/spacodiR.pdf)

GLOBAL MEASURES

INDICES

Value

A named list of at least one element (Ist) is returned. The size of the returned list is wholly dependent upon given arguments.

SPECIES DIVERSITY STRUCTURING

PHYLOGENETIC DIVERSITY STRUCTURING

TRAIT DIVERSITY STRUCTURING

INTERPRETATION

Author(s)

Olivier Hardy, Timothy Paine, and Jonathan Eastman

References

HARDY OJ and B SENTERRE. 2007. Characterizing the phylogenetic structure of communities by an additive partitioning of phylogenetic diversity. Journal of Ecology 95:493-506.

HARDY OJ. 2008. Testing the spatial phylogenetic structure of local communities: statistical performances of different null models and test statistics on a locally neutral community. Journal of Ecology 96:914-926.

HARDY OJ and L JOST. 2008. Interpreting and estimating measures of community phylogenetic structuring. Journal of Ecology 96:849-852.

See Also

match.spacodi.data; as.spacodi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# load a species-by-plots matrix, along with a tree
data(sp.example)
attributes(sp.example)
attach(sp.example)
spl
phy

# community diversity statistics of Hardy and Senterre (2007): tree-based
spacodi.calc(sp.plot = spl, phy = phy)

# community diversity statistics: trait-based with pairwise comparisons
spacodi.calc(sp.plot = spl, phy = phy, pairwise=TRUE)

# community diversity for a pair of traits
spacodi.calc(sp.plot = spl, sp.traits = trt, all.together=TRUE)

# community diversity for a pair of traits, each singly
spacodi.calc(sp.plot = spl, sp.traits = trt, all.together=FALSE)

# Ist: using abundance data only				
spacodi.calc(sp.plot = spl)	

# calculations with missing taxa between tree and sp.plot
# excluding the last five species in sp.plot, 
spacodi.calc(sp.plot = spl[1:15,], phy = phy, prune=TRUE)

# as before but with 'manual' pruning of the datasets
match.spacodi.data(sp.plot=spl[1:15,],phy=phy) -> prn.data
spacodi.calc(sp.plot=prn.data$sp.plot, phy=prn.data$sp.tree)
prn.data$sp.plot
prn.data$sp.tree


							

spacodiR documentation built on May 2, 2019, 8:26 a.m.