Description Usage Arguments Value See Also Examples
View source: R/cluster_plots.R
Draws a heatmap of the distances between the samples of an experiment, the samples are ordered by hierarchical clustering.
1 2 3 4 5 |
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.
1 | plot_sample_heatmap(merged_sample)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.