gheatmap_with_gaps: Put a multi-column gheatmap onto a ggtree object with gaps...

View source: R/ggtree_function_extensions.R

gheatmap_with_gapsR Documentation

Put a multi-column gheatmap onto a ggtree object with gaps between columns

Description

Put a multi-column gheatmap onto a ggtree object with gaps between columns

Usage

gheatmap_with_gaps(
  ggtree_object,
  gheatmap_df,
  col_width = max(ggtree_object$data$x)/5,
  offset_num = 0,
  gap = col_width/10
)

Arguments

ggtree_object

Tree object

gheatmap_df

Dataframe to be put along tree as gheatmap. Rownames should correspond with the tip labels in the tree.

col_width

Column width for each column in the heatmap [Default = 1/5 width of the tree]

offset_num

Initial offset from the tree [Default = 0]

gap

Gap between each column [Default = 1/10 of value of column width]

Value

Tree object with gheatmap added, with the gaps

Examples

remove_tips_from_tree(tree_object, list_of_tips)

djw533/micro.gen.extra documentation built on Nov. 8, 2024, 5:11 a.m.