Learn R Programming

ggtree (version 1.4.11)

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_level = NULL, font.size = 4)

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_level
levels of colnames
font.size
font size of matrix colnames

Value

tree view