Learn R Programming

iNEXT (version 2.0.8)

iNEXT: iNterpolation and EXTrapolation of Hill number

Description

iNEXT: Interpolation and extrapolation of Hill number with order q

Usage

iNEXT(x, q = 0, datatype = "abundance", size = NULL, endpoint = NULL,
  knots = 40, se = TRUE, conf = 0.95, nboot = 50)

Arguments

x
a matrix, data.frame (species by sites), or list of species abundances or incidence frequencies. If datatype = "incidence", then the first entry of the input data must be total number of sampling units in each column or list.
q
a numeric value specifying the diversity order of Hill number .
datatype
data type of input data: individual-based abundance data (datatype = "abundance"), sampling-unit-based incidence frequencies data (datatype = "incidence_freq") or species by sampling-units incidence matrix (datatype = "inci
size
an integer vector of sample sizes (number of individuals or sampling units) for which diversity estimates will be computed. If NULL, then diversity estimates will be computed for those sample sizes determined by the specified/default endpoint
endpoint
an integer specifying the sample size that is the endpoint for rarefaction/extrapolation. If NULL, then endpoint = double reference sample size.
knots
an integer specifying the number of equally-spaced knots (say K, default is 40) between size 1 and the endpoint; each knot represents a particular sample size for which diversity estimate will be calculated. If the endpoi
se
a logical variable to calculate the bootstrap standard error and conf confidence interval.
conf
a positive number < 1 specifying the level of confidence interval, default is 0.95
nboot
an integer specifying the number of replications.

Value

  • a list of three objects: $DataInfo for summarizing data information; $iNextEst for showing diversity estimates for rarefied and extrapolated samples along with related statistics; and $AsyEst for showing asymptotic diversity estimates along with related statistics.

Examples

Run this code
## example for abundance based data (list of vector)
data(spider)
out1 <- iNEXT(spider, q=0, datatype="abundance")
out1$DataInfo # showing basic data information.
out1$AsyEst # showing asymptotic diversity estimates.
out1$iNextEst # showing diversity estimates with rarefied and extrapolated.

## example for abundance based data (data.frame)
data(bird)
out2 <- iNEXT(bird, q=0, datatype="abundance")
ggiNEXT(out2)

## example for incidence frequencies based data (list of data.frame)
data(ant)
t <- round(seq(10, 500, length.out=20))
out3 <- iNEXT(ant$h500m, q=1, datatype="incidence_freq", size=t, se=FALSE)
out3$iNextEst

Run the code above in your browser using DataLab