plot_sample_heatmap: Draw heatmaps

Description Usage Arguments Value See Also Examples

View source: R/cluster_plots.R

Description

Draws a heatmap of the distances between the samples of an experiment, the samples are ordered by hierarchical clustering.

Usage

1
2
3
4
5
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 = NULL, fill_scale_dis = NULL)

Arguments

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 dist

clust_method

clustering method used in clustering, see hclust

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

Value

a ggplot object. If group_bar is TRUE, the plot will consist of multiple parts and is harder to modify.

See Also

dist hclust

Examples

1
plot_sample_heatmap(merged_sample)

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.