View source: R/build_dendrograms.R
build_dendrograms | R Documentation |
This function performs hierarchical clustering on microbial relative abundance data binned at a specified level of taxonomic classification.
build_dendrograms(
binned.taxonomy,
metadata,
color.by,
trans = "log10",
sub.comms,
cores = 1
)
binned.taxonomy |
Output from |
metadata |
Sample metadata |
color.by |
Metadata column by which to color |
trans |
Transformation to apply to relative abundance data (default = none). Can be one of |
sub.comms |
(Optional) Metadata column by which to split dendrograms into subcommunities |
cores |
(Optional) Number of CPUs (default = 1) |
This function can be applied directly to the output from
bin_taxonomy()
.
A list is returned:
tip_data: underlying dendrogram data; can be used in build_taxa.barplot()
hclust_plots: hierarchical clustering plot
legends: legend corresponding to hclust_plot
build_dendrograms(binned_tax, metadata, "sample_type", "sqrt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.