spacodi.by.nodes: conducting randomization tests of turnover in diversity...

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

Description

spacodi.by.nodes is a function for testing the null expectation of uniform diversity turnover across nodes of a phylogeny.

Usage

1
spacodi.by.nodes(sp.plot, phy, sp.parm = "Bst", obs.only = FALSE, return.all = TRUE, n.rep = 10, method = "1s", parm = NULL, dmat = NULL, rand.test = TRUE, r.rep = 10000, ...)

Arguments

sp.plot

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

phy

a phylogenetic tree of class phylo; see read.tree

sp.parm

a parameter of interest (one of "Ist","Pst","Bst","PIst" or analogs for trait data); see Details

obs.only

Boolean; whether only estimated sp.parmss for the empirical data are returned

return.all

Boolean; whether results for all nodes are returned for the empirical data (regardless NA estimates)

n.rep

number of permutations to perform on the dataset

method

reshuffling or simulation procedure to perform (see Details for optional methods)

parm

additional parameters, required for methods "1a", "2x", and "3x" (see Details)

dmat

an optional matrix of spatial distances between plots, for use only with method "3t"

rand.test

Boolean; whether a randomization test of observed and expected sp.parms is performed

r.rep

number of randomization iterations to perform

...

additional settings to be set for functions called by spacodi.matrices

Details

spacodi.by.nodes is a function to conduct randomization tests on estimated and observed sp.parmss through time. See spacodi.calc for further information on the possible estimators to use, whether considering phylogenetic or trait diversity.

spacodi.by.nodes computes measures of community structure for nodes of a phylogeny that subtend greater than two species and where nodes subtend species that are sampled in multiple plots.

Note: whether for the empirical data or for permuted datasets, if fewer than two species are sampled in a given plot, the plot will be dynamically removed from the dataset. This behavior can be controlled directly in spacodi.calc with the prune option.

For significance testing, permuted datasets may be generated by one of several methods:

Value

spacodi.by.nodes returns a list of three elements:

Author(s)

Jonathan Eastman and Timothy Paine

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.

See Also

spacodi.calc for interpretation of results; resamp.test; randomizeMatrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# load a species-by-plots matrix, along with a tree
data(sp.example)
attributes(sp.example)
attach(sp.example)
spl
phy

# generate a plot of observed and expected Bst
sp.permut<-spacodi.by.nodes(sp.plot=spl, phy=phy, n.rep=35)
sp.permut$randomization.test

# plot observed and expected Bst
spacodi.permutplot(spacodi.permutations=sp.permut, envelope=FALSE)

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