scale_x_ggtree | R Documentation |
scale x for tree with gheatmap
scale_x_ggtree(breaks = waiver(), labels = waiver())
breaks |
set breaks for tree |
labels |
lables for corresponding breaks |
Since setting x-axis for tree with gheatmap by using 'theme_tree2()' is quite tricky, 'scale_x_ggtree' can help set the x-axis more reasonably.
updated tree view
Guangchuang Yu
For more detailed demonstration of this function, please refer to chapter 7.3 of Data Integration, Manipulation and Visualization of Phylogenetic Trees http://yulab-smu.top/treedata-book/index.html by Guangchuang Yu.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.