taxa_clusters | R Documentation |
Cluster samples by taxa abundances k-means.
taxa_clusters(biom, rank = ".otu", k = 5, ...)
biom |
An rbiom object, such as from |
rank |
Which taxa rank to use. E.g. |
k |
Number of clusters. Default: |
... |
Passed on to |
A numeric factor assigning samples to clusters.
Other taxa_abundance:
sample_sums()
,
taxa_boxplot()
,
taxa_corrplot()
,
taxa_heatmap()
,
taxa_stacked()
,
taxa_stats()
,
taxa_sums()
,
taxa_table()
Other clustering:
bdiv_clusters()
library(rbiom)
biom <- rarefy(hmp50)
biom$metadata$otu_cluster <- taxa_clusters(biom)
pull(biom, 'otu_cluster')[1:10]
bdiv_ord_plot(biom, layers = "p", stat.by = "otu_cluster")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.