xlim_tree | R Documentation |
set x axis limits specially for Tree panel
xlim_tree(xlim)
xlim |
x axis limits |
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_tree(6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.