Description Usage Arguments Details Value See Also Examples
View source: R/alpha-diversity.R
Plot the alpha diversity using a violin plot. alpha_diversity_plots
generates plots for all alpha diversity measures.
1 2 3 4 5 | alpha_diversity_plot(obj, measure = "Shannon",
group = "TreatmentGroup", select_otu_table = NULL, title = NULL)
alpha_diversity_plots(obj, measures = c("Shannon", "GiniSimpson",
"InverseSimpson"), group = "TreatmentGroup")
|
obj |
An object to be converted to a Taxmap object with |
measure |
Select an alpha diversity measure such as Shannon, Fisher, Coverage, GiniSimpson, and InverseSimpson, Default: 'Shannon' |
group |
The "TreatmentGroup" or similar grouping or column from your metadata to denote sample groups, Default: 'TreatmentGroup' |
select_otu_table |
DEPRECATED. Choose an otu table to analyze, Default: 'otu_proportions' |
title |
The title of the plot, Default: NULL |
measures |
A list of alpha diversity measures such as Shannon, Fisher, Coverage, GiniSimpson, and InverseSimpson, Default: 'c("Shannon", "GiniSimpson", "InverseSimpson")' |
Alpha diversity helps to determine the species richness (the number of different species in a sample) or evenness (similar abundance level).
We prefer to use Shannon
as it is better for data generated using the QIIME pipeline.
Returns an alpha diversity plot.
Returns a melted dataframe.
alpha_diversity_measures
, diversity
, ggviolin
Other Visualizations: correlation_data
,
correlation_plots
,
correlation_plot
,
heat_tree_parameters
,
heat_tree_plots
,
ordination_plots
,
ordination_plot
, plot_limits
,
save_alpha_diversity_plots
,
save_correlation_plots
,
save_heat_tree_plots
,
save_ordination_plots
,
save_stacked_barplots
,
stacked_barplots
,
stacked_barplot
,
top_coefficients_barplot
Other Visualizations: correlation_data
,
correlation_plots
,
correlation_plot
,
heat_tree_parameters
,
heat_tree_plots
,
ordination_plots
,
ordination_plot
, plot_limits
,
save_alpha_diversity_plots
,
save_correlation_plots
,
save_heat_tree_plots
,
save_ordination_plots
,
save_stacked_barplots
,
stacked_barplots
,
stacked_barplot
,
top_coefficients_barplot
1 2 3 4 5 6 7 8 9 10 | ## Not run:
if (interactive()) {
library(MicrobiomeR)
data <- analyzed_silva
plot <- alpha_diversity_plot(obj = data,
measure = "Shannon")
plot
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.