iNEXT.link: Interpolation (rarefaction) and extrapolation of Chao et...

Description Usage Arguments Value References Examples

Description

Interpolation (rarefaction) and extrapolation of Chao et al.’s (2021) network diversity and mean network diversity Function iNEXT.link computes network diversity estimates for rarefied samples and extrapolated samples along with confidence intervals and related coverage estimates based on Chao et al.’s (2021) network diversity (ND)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
iNEXT.link(
  data,
  diversity = "TD",
  q = c(0, 1, 2),
  datatype = "abundance",
  size = NULL,
  nT = NULL,
  endpoint = NULL,
  knots = 40,
  conf = 0.95,
  nboot = 30,
  row.tree = NULL,
  col.tree = NULL,
  PDtype = "meanPD"
)

Arguments

data

a matrix/data.frame of species abundances (for abundance data) or species-by-site incidence raw matrix/data.frame (for incidence data).
Abundance data: a species-by-site matrix/data.frame of species abundances. The row (species) names of data must match the species names in the phylogenetic tree and thus cannot be missing.
Incidence raw data: species-by-site raw incidence matrix/data.frame. When there are N assemblages and thus N matrices, users must first merge the N matrices by species identity to obtain a large merged incidence matrix, where the rows of the matrix refer to all species presented in the merged data. The row (species) names of data must match the species names in the phylogenetic tree and thus cannot be missing.

diversity

a choice of three-level diversity: 'TD' = 'Taxonomic', 'PD' = 'Phylogenetic', and 'FD' = 'Functional' under certain threshold.

q

a nonnegative value or sequence specifying the diversity order. Default is c(0,1,2).

datatype

data type of input data: individual-based abundance data (datatype = "abundance") or species by sampling-units incidence matrix (datatype = "incidence_raw").

size

a sequence of positive integers specifying the sample sizes for which PD or meanPD estimates will be calculated. If NULL, then estimates will be calculated for those sample sizes determined by the specified/default endpoint and knots.

endpoint

a positive integer specifying the endpoint for the rarefaction and extrapolation range. If NULL, then endpoint = double of the reference sample size in each assemblage. It is ignored if size is given.

knots

a positive integer specifying the number of equally-spaced knots between 1 and the endpoint. Default is 40.

conf

a positive number < 1 specifying the level of confidence interval. Default is 0.95.

nboot

a positive integer specifying the number of bootstrap replications when assessing sampling uncertainty and constructing confidence intervals. Enter 0 to skip the bootstrap procedures. Default is 50

row.tree

phylogenetic tree of row assemblage in interaction matrix.

col.tree

phylogenetic tree of column assemblage in interaction matrix

PDtype

Select phylogenetic diversity type: PDtype = "PD" for Chao et al. (2010) phylogenetic diversity and PDtype = "meanPD" for mean phylogenetic diversity (phylogenetic Hill number). It will be used when diversity = 'PD'. Default is "PD".

type

desired diversity type: type = "PD" for Chao et al. (2010) phylogenetic diversity and type = "meanPD" for mean phylogenetic diversity (phylogenetic Hill number). Default is "PD".

Value

References

Chao, A., Chiu C.-H. and Jost, L. (2010). Phylogenetic diversity measures based on Hill numbers. Philosophical Transactions of the Royal Society B., 365, 3599-3609.

Chao, A., Chiu, C.-H., Hsieh, T. C., Davis, T., Nipperess, D., and Faith, D. (2015). Rarefaction and extrapolation of phylogenetic diversity. Methods in Ecology and Evolution, 6, 380-388.

Chao, A., Chiu C.-H. and Jost L. (2016). Phylogenetic diversity measures and their decomposition: a framework based on Hill numbers. pp. 141-172 in Pellens R. and Grandcolas P. (eds) Biodiversity Conservation and Phylogenetic Systematics: Preserving our Evolutionary Heritage in an Extinction Crisis, Springer.

Hsieh, T. C. and Chao, A. (2017). Rarefaction and extrapolation: making fair comparison of abundance-sensitive phylogenetic diversity among multiple assemblages. Systematic Biology, 66, 100-111.

Examples

1
2
3
4
5
6
7
## Not run: 
data(puerto.rico)
iNEXT.link(puerto.rico$data, diversity = 'TD', datatype="abundance")
iNEXT.link(puerto.rico$data, diversity = 'PD', datatype="abundance",
           row.tree = puerto.rico$row.tree, col.tree = puerto.rico$col.tree)

## End(Not run)

Chunger-Lo/iNEXT.link documentation built on Dec. 17, 2021, 2:05 p.m.