alpha_div_plots | R Documentation |
Plots boxplots of alpha-diversity distances with jitter plot.
alpha_div_plots( phylo, x_axis, color_var, measures = c("Observed", "Simpson", "Shannon", "BF_ratio"), jitter_params = list(), boxplot_params = list(), ... )
phylo |
phyloseq object with alpha-diversity distances in the sample data |
x_axis |
Determines x variable in plots. Column name in sample data from phyloseq object as character |
color_var |
Variable in sample data from phyloseq object for color aesthetics |
measures |
Alpha-diversity distances. Atomic character vector with column names of sample data from the phyloseq object. Normally calculated with alpha_div_calc() |
jitter_params |
Additional parameters for ggplot2 geom_jitter |
boxplot_params |
Additional parameters for ggplot2 geom_boxplot |
... |
More Paremeters |
data("mice_B6_N") phylo <- phyloseq::subset_samples(mice_B6_N, Description == "IN") phylo <- phyloseq::prune_taxa(phyloseq::taxa_sums(mice_B6_N) > 0, phylo) phylo_a_dist <- alpha_div_calc(phylo, 2000) alpha_div_plots(phylo_a_dist, "Vendor", "Vendor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.