This function calculates Zeta diversity for each group in the provided otutab.
This function plots the Zeta diversity results obtained from the z_diversity function.
A matrix or data frame containing OTU (Operational Taxonomic Unit) counts.
A data frame containing group information.
Additional parameters to be passed to the Zeta.decline.mc function from the zetadiv package.
Zeta diversity results obtained from z_diversity function.
The linear model to be used for fitting ('exp' or 'pl').
Logical, whether to add a ribbon to the plot for standard deviation.
Logical, whether to add R-squared and p-value text annotations.
Additional arguments to be passed to ggplot2 functions.
zeta_res
A ggplot object.
if (requireNamespace("zetadiv")) {
data(otutab, package = "pcutils")
zeta_result <- z_diversity(otutab, metadata["Group"], zetadiv_params = list(sam = 10))
plot(zeta_result, lm_model = "exp", text = TRUE)
}
#> Loading required namespace: zetadiv