xlim_expand | R Documentation |
expand x axis limits for specific panel
xlim_expand(xlim, panel)
xlim |
x axis limits |
panel |
name of the panel to expand |
updated tree view
Guangchuang Yu
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.