plot_dendrogram | R Documentation |
Generating a dendrogram can be useful for visualizing similarities and differences in community compositions among samples.
plot_dendrogram(dm, metadata_map, labels, color_by, method = "complete", ...)
dm |
Dissimilarity matrix. |
metadata_map |
The metadata mapping dataframe. Typically, input$map_loaded. |
labels |
The metadata mapping dataframe column name representing the intended leaf labels. |
color_by |
[OPTIONAL] The metadata mapping dataframe column name representing the intended leaf label colors. |
method |
The clustering method to use when creating the dendrogram. |
... |
Other parameters passed on to geom_text |
fvrar = single_rarefy(fruits_veggies, 100) dm = calc_dm(fvrar$data_loaded) plot_dendrogram( dm, metadata_map = fvrar$map_loaded, labels = 'Sample_type', color_by = 'Farm_type' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.