xlim_expand: xlim_expand

View source: R/axis.R

xlim_expandR Documentation

xlim_expand

Description

expand x axis limits for specific panel

Usage

xlim_expand(xlim, panel)

Arguments

xlim

x axis limits

panel

name of the panel to expand

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_expand(c(-10, 10), 'Dot')

GuangchuangYu/ggtree documentation built on April 12, 2024, 5:20 a.m.