Compute heatmap with dendrogram on x-axis and y-axis using ggplot2.

ggheatmap(data, dendrogram_columns = TRUE, dendrogram_rows = TRUE,
  line_size = 0.1, font_size = 11, font_size_x = 11,
  font_size_y = 11, distance_method = "euclidean",
  cluster_method = "ward.D2", scale_name = "value",
  scale_revert = FALSE)

Arguments

data

A data.frame. The data on which to draw the heatmap/dendrogram.

dendrogram_columns

A logical. Should the dendrogram for columns be plotted?

dendrogram_rows

A logical. Should the dendrogram for row be plotted?

line_size

A numeric. Value for the line size.

font_size

A numeric. Value for the font size.

font_size_x

A numeric. Value for the font size of the x-axis.

font_size_y

A numeric. Value for the font size of the y-axis.

distance_method

A character. The distance method to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski".

cluster_method

A character. The agglomeration method to be used. This should be one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

scale_name

A character. The name of the legend.

scale_revert

A logical. Should the scale values be reversed?

Value

A ggplot object.