plot alpha diversity
plotalpha(
physeq,
group,
method = c("Observed", "Simpson", "Shannon"),
color = NULL,
geom = "boxplot",
pvalue = 0.05,
padj = NULL,
sig.only = TRUE,
wilcox = FALSE,
show.number = FALSE
)
Returns a ggplot object. This can further be manipulated as preferred by user.
A phyloseq
object containing merged information of abundance,
taxonomic assignment, sample data including the measured variables and categorical information
of the samples, and / or phylogenetic tree if available.
group (Required). A character string specifying the name of a categorical variable containing grouping information.
A list of character strings specifying method
to be used to calculate for alpha diversity
in the data. Available methods are: "Observed","Chao1","ACE","Richness", "Fisher", "Simpson", "Shannon", "Evenness","InvSimpson".
A vector of character use specifying the color
different geom to display("boxplot","violin","dotplot")
pvalue threshold for significant dispersion results
adjust p value threshold for significant dispersion results
display the significant comparsion only(TRUE/ FALSE)
use wilcoxon test or not
to show the pvalue instead of significant symbol(TRUE/FALSE)
Kai Guo
{
data("Physeq")
plotalpha(physeq,group="SampleType")
}
Run the code above in your browser using DataLab