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.


YuLab-SMU/ggtree documentation built on April 15, 2024, 5:19 p.m.