This function allows for ordination (which helps us to distinguish beta diversity relationships) to be plotted as well as for the corresponding data to be returned.
ordination_plot(obj, method = "PCoA", distance = "wunifrac", color = "TreatmentGroup", title = NULL, only_data = FALSE)
| obj | An object to be converted to a taxmap object with |
|---|---|
| method | Choose an ordination method from 'PCoA', 'CCA', 'NMDS' or 'DPCoA', Default: 'PCoA' |
| distance | Choose a |
| color | Choose the group or factor of which colors will be mapped to, Default: 'TreatmentGroup' |
| title | The title of the plot, Default: NULL |
| only_data | Allows for only ordination data to be generated, Default: FALSE |
By default, it returns an ordination plot.
View save_ordination_plots to save your ordination plot or multiple ordination plots.
Other Visualizations: alpha_diversity_plot,
correlation_data,
correlation_plots,
correlation_plot,
heat_tree_parameters,
heat_tree_plots,
ordination_plots,
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
# NOT RUN { if (interactive()) { # An example ordination plot library(MicrobiomeR) data <- analyzed_silva plot <- ordination_plot(obj = data) plot } # }