dis1: 'dis1': computes the contribution of each species/node to the...

Description Usage Arguments Value Examples

View source: R/funs.R

Description

dis1: computes the contribution of each species/node to the two types of dissimilarity measures.

Usage

1
dis1(x, q, type = "tax", type2 = "species", tree = NULL)

Arguments

x

the species-by-assemblages abundance matrix or data.frame with species names as rownames and the colnames as assemblage/site names.

q

a single value for the diversity order.

type

a string: "tax" (taxonomic) or "phy" (phylogenetic).

type2

a string: "species" or "k"."species" means the contribution of each species/node to the two types of dissimilarity measures (Jaccard-type dissimilarity and Sorensen-type dissimilarity). "k" means the contribution of each assemblage/location/site to the two types of dissimilarity measures (Jaccard-type dissimilarity and Sorensen-type dissimilarity). In the worked example, the contribution of each assemblage/stage is not computed.

tree

the pylo object of the phylogenetic tree of all assemblages. Needed only if type="phy".

Value

a data frame tabulating the contribution of each species/node to the two types of dissimilarity measures: Jaccard-type (1-U_qN) and Sorensen-type (1-C_qN)

Examples

1
2
3
4
5
6
7
#Taxonomic analysis example
data(Alpine)
out0 <- dis1(x = Alpine, q = 0, type = "tax")
#Phylogenetic analysis example
data(Alpine)
data(tree_Alpine)
out0 <- dis1(x = Alpine, q = 0, type = "phy", tree = tree_Alpine)

YanHanChen/Evenness documentation built on Feb. 1, 2020, 12:53 a.m.