xlim_tree: xlim_tree

View source: R/axis.R

xlim_treeR Documentation

xlim_tree

Description

set x axis limits specially for Tree panel

Usage

xlim_tree(xlim)

Arguments

xlim

x axis limits

Value

updated tree view

Author(s)

Guangchuang Yu

Examples

x <- rtree(30)
p <- ggtree(x) + geom_tiplab()
d <- data.frame(label = x$tip.label, 
                value = rnorm(30))
p2 <- p + geom_facet(panel = "Dot", data = d, 
            geom = geom_point, mapping = aes(x = value))
p2 + xlim_tree(6)

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