ObsAsy3D {iNEXT.3D} | R Documentation |
Asymptotic diversity and observed diversity of order q
Description
ObsAsy3D
computes observed and asymptotic diversity of order q between 0 and 2 (in increments of 0.2) for 3D diversity; these 3D values with different order q can be used to depict a q-profile in the ggObsAsy3D
function.
It also computes observed and asymptotic PD for various reference times by specifying the argument PDreftime
; these PD values with different reference times can be used to depict a time-profile in the ggObsAsy3D
function.
It also computes observed and asymptotic FD for various threshold tau levels by specifying the argument FDtau
; these FD values with different threshold levels can be used to depict a tau-profile in the ggObsAsy3D
function.
For each dimension, by default, both the observed and asymptotic diversity estimates will be computed.
Usage
ObsAsy3D(
data,
diversity = "TD",
q = seq(0, 2, 0.2),
datatype = "abundance",
nboot = 50,
conf = 0.95,
nT = NULL,
method = c("Asymptotic", "Observed"),
PDtree,
PDreftime = NULL,
PDtype = "meanPD",
FDdistM,
FDtype = "AUC",
FDtau = NULL,
FDcut_number = 50
)
Arguments
data |
(a) For |
diversity |
selection of diversity type: |
q |
a numerical vector specifying the diversity orders. Default is |
datatype |
data type of input data: individual-based abundance data ( |
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. |
conf |
a positive number < 1 specifying the level of confidence interval. Default is 0.95. |
nT |
(required only when |
method |
Select |
PDtree |
(required argument for |
PDreftime |
(argument only for |
PDtype |
(argument only for |
FDdistM |
(required argument for |
FDtype |
(argument only for |
FDtau |
(argument only for |
FDcut_number |
(argument only for |
Value
a data frame including the following information/statistics:
Assemblage |
the name of assemblage. |
Order.q |
the diversity order of q. |
qTD , qPD , qFD |
the estimated asymptotic diversity or observed diversity of order q. |
s.e. |
standard error of diversity. |
qTD.LCL , qPD.LCL , qFD.LCL and qTD.UCL , qPD.UCL , qFD.UCL |
the bootstrap lower and upper confidence limits for the diversity of order q at the specified level (with a default value of 0.95). |
Method |
|
Reftime |
the reference times for PD. |
Type |
|
Tau |
the threshold of functional distinctiveness between any two species for FD (under |
Examples
# Compute the observed and asymptotic taxonomic diversity for abundance data
# with order q between 0 and 2 (in increments of 0.2 by default)
data(Brazil_rainforest_abun_data)
output_ObsAsy_TD_abun <- ObsAsy3D(Brazil_rainforest_abun_data, diversity = 'TD',
datatype = "abundance")
output_ObsAsy_TD_abun
# Compute the observed and asymptotic phylogenetic diversity for abundance data
# with order q = 0, 1, 2 under reference times from 0.01 to 400 (tree height).
data(Brazil_rainforest_abun_data)
data(Brazil_rainforest_phylo_tree)
data <- Brazil_rainforest_abun_data
tree <- Brazil_rainforest_phylo_tree
output_ObsAsy_PD_abun <- ObsAsy3D(data, diversity = 'PD', q = c(0, 1, 2),
PDreftime = seq(0.01, 400, length.out = 20),
datatype = "abundance", nboot = 20, PDtree = tree)
output_ObsAsy_PD_abun
# Compute the observed and asymptotic functional diversity for abundance data
# with order q = 0, 1, 2 under tau values from 0 to 1.
data(Brazil_rainforest_abun_data)
data(Brazil_rainforest_distance_matrix)
data <- Brazil_rainforest_abun_data
distM <- Brazil_rainforest_distance_matrix
output_ObsAsy_FD_abun_tau <- ObsAsy3D(data, diversity = 'FD', q = c(0, 1, 2),
datatype = "abundance", nboot = 10, FDdistM = distM,
FDtype = 'tau_values', FDtau = seq(0, 1, 0.05))
output_ObsAsy_FD_abun_tau
# Compute the observed and asymptotic functional diversity for abundance data
# with order q between 0 and 2 (in increments of 0.5).
data(Brazil_rainforest_abun_data)
data(Brazil_rainforest_distance_matrix)
data <- Brazil_rainforest_abun_data
distM <- Brazil_rainforest_distance_matrix
output_ObsAsy_FD_abun <- ObsAsy3D(data, diversity = 'FD', q = seq(0, 2, 0.5),
datatype = "abundance", nboot = 10,
FDdistM = distM, FDtype = 'AUC')
output_ObsAsy_FD_abun
# Compute the observed and asymptotic taxonomic diversity for incidence data
# with order q between 0 and 2 (in increments of 0.2 by default).
data(Fish_incidence_data)
output_ObsAsy_TD_inci <- ObsAsy3D(Fish_incidence_data, diversity = 'TD',
datatype = "incidence_raw")
output_ObsAsy_TD_inci
# Compute the observed and asymptotic phylogenetic diversity for incidence data
# with order q between 0 and 2 (in increments of 0.2 by default),
# for the default reference time = 0.977 (the tree depth).
data(Fish_incidence_data)
data(Fish_phylo_tree)
data <- Fish_incidence_data
tree <- Fish_phylo_tree
output_ObsAsy_PD_inci <- ObsAsy3D(data, diversity = 'PD', q = seq(0, 2, 0.2),
datatype = "incidence_raw", nboot = 20, PDtree = tree,
PDreftime = NULL)
output_ObsAsy_PD_inci
# Compute the observed and asymptotic functional diversity for incidence data
# with order q between 0 and 2 (in increments of 0.2 by default).
data(Fish_incidence_data)
data(Fish_distance_matrix)
data <- Fish_incidence_data
distM <- Fish_distance_matrix
output_ObsAsy_FD_inci <- ObsAsy3D(data, diversity = 'FD', datatype = "incidence_raw",
nboot = 20, FDdistM = distM, FDtype = 'AUC')
output_ObsAsy_FD_inci