View source: R/plotDistances.R
plot_distances | R Documentation |
Takes a 'phyloseq' object with samples grouped in the sample data, calculates all pairwise beta-diversity metrics, and plots the distances in facets. Now it returns a list where the df can be accessed with $df, and the plot can be accessed with $plot.
plot_distances(
p = GlobalPatterns,
m = "wunifrac",
s = "X.SampleID",
d = "SampleType"
)
p |
A phyloseq object |
m |
Distance metric |
s |
Column name with sample IDs |
d |
Grouping for comparisons |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.