scale_x_ggtree: scale_x_ggtree

View source: R/scales.R

scale_x_ggtreeR Documentation

scale_x_ggtree

Description

scale x for tree with gheatmap

Usage

scale_x_ggtree(breaks = waiver(), labels = waiver())

Arguments

breaks

set breaks for tree

labels

lables for corresponding breaks

Details

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.

Value

updated tree view

Author(s)

Guangchuang Yu

References

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.


GuangchuangYu/ggtree documentation built on Oct. 31, 2024, 10:10 a.m.