View source: R/ggtree_function_extensions.R
gheatmap_with_gaps | R Documentation |
Put a multi-column gheatmap onto a ggtree object with gaps between columns
gheatmap_with_gaps(
ggtree_object,
gheatmap_df,
col_width = max(ggtree_object$data$x)/5,
offset_num = 0,
gap = col_width/10
)
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] |
Tree object with gheatmap added, with the gaps
remove_tips_from_tree(tree_object, list_of_tips)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.