geom_th_heatmap0: Create heatmaps

View source: R/geom_th_heatmap.R

geom_th_heatmap0R Documentation

Create heatmaps

Description

Create heatmaps

Usage

geom_th_heatmap0(
  th_data = NULL,
  cluster_column = FALSE,
  hclust_method = "complete",
  dist_method = "euclidean",
  gap = 1,
  name = NULL,
  rel_width = 1,
  ...,
  linejoin = "mitre",
  na.rm = FALSE,
  show.legend = NA,
  inherit.aes = FALSE
)

Arguments

th_data

a matrix

cluster_column

a logical value, TRUE or FALSE. If TRUE, columns of the heatmap are rearranged according to their similarities.

hclust_method

the method used to do clustering. This should be "ward.D", "ward.D2", "single", "complete", "average", "mcquitty", "median" or "centroid". See method for hclust.

dist_method

the method used to do clustering. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". See method for dist.

gap

a numeric value to specify the gap between the current and the previous heatmap

name

the name of the current heatmap

rel_width

a numeric value decide the relative width of the heatmap compared to the ggtree plot

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat.

linejoin

Line join style (round, mitre, bevel).

na.rm

If FALSE, the default, missing values are removed with a warning. If TRUE, missing values are silently removed.

show.legend

logical. Should this layer be included in the legends? NA, the default, includes if any aesthetics are mapped. FALSE never includes, and TRUE always includes. It can also be a named logical vector to finely select the aesthetics to display.

inherit.aes

If FALSE, overrides the default aesthetics, rather than combining with them. This is most useful for helper functions that define both data and aesthetics and shouldn't inherit behaviour from the default plot specification, e.g. borders().

Value

geom layer

Author(s)

Ruizhu Huang


fionarhuang/TreeHeatmap documentation built on Feb. 1, 2024, 7:30 a.m.