plot_heatmap: Plot an annotated heatmap Plots a hierarchically clustered...

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot an annotated heatmap Plots a hierarchically clustered heatmap showing selected sample and lipid molecule annotations.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_heatmap(
  data,
  measure = "Area",
  molecule_annotation = "Class",
  sample_annotation = "all",
  cluster_cols = "hclust",
  cluster_rows = "hclust",
  scale = "rows",
  ...
)

Arguments

data

LipidomicsExperiment object.

measure

Which measure to plot the distribution of: usually Area, Area Normalized, Height or Retention Time. Default is Area.

molecule_annotation

The column name for lipid annotation, default to Class.

sample_annotation

The column name for sample annotation, default to all.

cluster_cols

"none","hclust", or "k-means" for no clustering, hierarchical clustering, and k-means clustering of rows respectively. Default is "hclust".

cluster_rows

"none","hclust", or "k-means" for no clustering, hierarchical clustering, and k-means clustering of rows respectively. Default is "hclust".

scale

character indicating if the values should be centered and scaled in either the row direction or the column direction, or none. Corresponding values are "row", "cols" and "none".

...

Additional parameters passed to iheatmapr::iheatmap().

Value

A heatmap plot

Examples

1
2
data(data_normalized)
plot_heatmap(data_normalized, sample_annotation = "group")

lipidr documentation built on Nov. 8, 2020, 7:50 p.m.