dot-align_to_ggtree: align a matrix to a ggtree

.align_to_ggtreeR Documentation

align a matrix to a ggtree

Description

It matches rows of a matrix to nodes of a ggtree by the row name.

Usage

.align_to_ggtree(data, data_tree, rel_width = 1)

Arguments

data

a matrix. Its row names can be mapped to nodes of a tree.

data_tree

a data frame that is generated by ggtree

rel_width

a numeric value. The relative width of a heatmap to the width the ggtree.

Value

a data frame

Author(s)

Ruizhu Huang


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