plotalpha | R Documentation |
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
)
physeq |
A |
group |
group (Required). A character string specifying the name of a categorical variable containing grouping information. |
method |
A list of character strings specifying |
color |
A vector of character use specifying the color |
geom |
different geom to display("boxplot","violin","dotplot") |
pvalue |
pvalue threshold for significant dispersion results |
padj |
adjust p value threshold for significant dispersion results |
sig.only |
display the significant comparsion only(TRUE/ FALSE) |
wilcox |
use wilcoxon test or not |
show.number |
to show the pvalue instead of significant symbol(TRUE/FALSE) |
Returns a ggplot object. This can further be manipulated as preferred by user.
Kai Guo
{
data("Physeq")
plotalpha(physeq,group="SampleType")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.