align_plots: Align decision tree and heatmap:

Description Usage Arguments Value

View source: R/utils.R

Description

Align decision tree and heatmap:

Usage

1
2
3
4
5
6
align_plots(
  dheat,
  dtree,
  heat_rel_height,
  show = c("heat-tree", "heat-only", "tree-only")
)

Arguments

dheat

ggplot2 grob object of the heatmap.

dtree

ggplot2 grob object of the decision tree

heat_rel_height

Relative height of heatmap compared to whole figure (with tree).

show

Character string indicating which components of the decision tree-heatmap should be drawn. Can be 'heat-tree', 'heat-only' or 'tree-only'.

Value

A gtable/grob object of the decision tree (top) and heatmap (bottom).


treeheatr documentation built on Nov. 20, 2020, 1:07 a.m.