View source: R/plotAlphaDiversity.R
plotAlphaDiv | R Documentation |
Plot Alpha Diversity
plotAlphaDiv(
dataset = NULL,
method = "Chao1",
factor = NULL,
stratify = FALSE,
facet.x = NULL,
facet.y = NULL,
flattenFactors = FALSE,
param = FALSE,
showStats = TRUE,
width = 6,
height = 4.5,
add_xaxis = F,
separateLegend = F
)
dataset |
MicroVis dataset. Defaults to the active dataset |
method |
Method for alpha diversity calculation. One of either "chao1", "shannon", "simpson", "invsimpson", or "pd". Defaults to "chao1" |
factor |
Factor along which to compare alpha diversity between groups. Defaults to the active factor |
stratify |
Whether or not to stratify. Defaults to FALSE |
facet.x |
(Optional) A factor to stratify by horizontally |
facet.y |
(Optional) A factor to stratify by vertically |
flattenFactors |
Combine multiple factors |
param |
Whether to perform parametrized or nonparametrized univariate analysis of alpha diversity. Defaults to FALSE (nonparametrized) |
showStats |
Whether or not to show significance labels. Defaults to TRUE |
width |
Width of plot when saved, in inches. Increasing width and height will make text relatively smaller |
height |
Height of plot when saved, in inches. Increasing width and height will make text relatively smaller |
add_xaxis |
Whether to add x-axis labels. Defaults to FALSE |
separateLegend |
Whether to separate the legend from the plot. Defaults to FALSE |
Boxplot of alpha diversity of the groups
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.