View source: R/cluster_plots.R
plot_sample_heatmap | R Documentation |
Draws a heatmap of the distances between the samples of an experiment, the samples are ordered by hierarchical clustering.
plot_sample_heatmap(
object,
all_features = FALSE,
dist_method = "euclidean",
clust_method = "ward.D2",
center = TRUE,
scale = "uv",
group_bar = TRUE,
group = group_col(object),
title = "Heatmap of distances between samples",
subtitle = NULL,
fill_scale_con = getOption("notame.fill_scale_con"),
fill_scale_dis = getOption("notame.fill_scale_dis")
)
object |
a MetaboSet object |
all_features |
logical, should all features be used? If FALSE (the default), flagged features are removed before visualization. |
dist_method |
distance method used in clustering, see |
clust_method |
clustering method used in clustering, see |
center |
logical, should the data be centered? |
scale |
scaling used, as in pcaMethods::prep. Default is "uv" for unit variance |
group_bar |
logical, should a bar showing the groups be drawn under the heat map? |
group |
character, name of the column used for coloring the group bar |
title |
The plot title |
subtitle |
The plot subtitle |
fill_scale_con |
Continuous fill scale for the heatmap as returned by a ggplot function |
fill_scale_dis |
Discrete fill scale for the group bar as returned by a ggplot function |
a ggplot object. If group_bar
is TRUE
, the plot will consist of multiple
parts and is harder to modify.
dist
hclust
plot_sample_heatmap(merged_sample)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.