View source: R/cluster_plots.R
plot_dendrogram | R Documentation |
Draws a dendrogram of a hierarchical clustering applied to the samples of an experiment
plot_dendrogram(
object,
all_features = FALSE,
color = group_col(object),
dist_method = "euclidean",
clust_method = "ward.D2",
center = TRUE,
scale = "uv",
title = "Dendrogram of hierarchical clustering",
subtitle = NULL,
color_scale = getOption("notame.color_scale_dis")
)
object |
a MetaboSet object |
all_features |
logical, should all features be used? If FALSE (the default), flagged features are removed before visualization. |
color |
character, name of the column used for coloring the sample labels |
dist_method |
distance method used in clustering, see ?dist |
clust_method |
method used in clustering, see ?hclust |
center |
logical, should the data be centered? |
scale |
scaling used, as in |
title |
The plot title |
subtitle |
The plot subtitle |
color_scale |
the color scale as returned by a ggplot function. |
A ggplot object.
dist
hclust
plot_dendrogram(merged_sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.