Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gheatmap

gheatmap


Description

append a heatmap of a matrix to right side of phylogenetic tree

Usage

gheatmap(
  p,
  data,
  offset = 0,
  width = 1,
  low = "green",
  high = "red",
  color = "white",
  colnames = TRUE,
  colnames_position = "bottom",
  colnames_angle = 0,
  colnames_level = NULL,
  colnames_offset_x = 0,
  colnames_offset_y = 0,
  font.size = 4,
  family = "",
  hjust = 0.5,
  legend_title = "value"
)

Arguments

p

tree view

data

matrix or data.frame

offset

offset of heatmap to tree

width

total width of heatmap, compare to width of tree

low

color of lowest value

high

color of highest value

color

color of heatmap cell border

colnames

logical, add matrix colnames or not

colnames_position

one of 'bottom' or 'top'

colnames_angle

angle of column names

colnames_level

levels of colnames

colnames_offset_x

x offset for column names

colnames_offset_y

y offset for column names

font.size

font size of matrix colnames

family

font of matrix colnames

hjust

hjust for column names (0: align left, 0.5: align center, 1: align righ)

legend_title

title of fill legend

Value

tree view

Author(s)

Guangchuang Yu


ggtree

an R package for visualization of tree and annotation data

v2.4.2
Artistic-2.0
Authors
Guangchuang Yu [aut, cre, cph] (<https://orcid.org/0000-0002-6485-8781>), Tommy Tsan-Yuk Lam [aut, ths], Shuangbin Xu [aut] (<https://orcid.org/0000-0003-3513-5362>), Yonghe Xia [ctb], Justin Silverman [ctb], Bradley Jones [ctb], Watal M. Iwasaki [ctb], Ruizhu Huang [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.