View source: R/clade-functions.R
zoomClade | R Documentation |
zoom in on a selected clade of a tree, while showing its on the full view of tree as a seperated panel for reference
zoomClade(tree_view = NULL, node, xexpand = NULL)
tree_view |
tree view (i.e. the ggtree object). If tree_view is NULL, the last ggplot object will be used. |
node |
internal node number to specify a clade. If NULL, using the whole tree |
xexpand |
numeric, expend the xlim of the zoom area. default is NULL. |
full tree with zoom in clade
Guangchuang Yu
## Not run:
x <- rtree(15)
p <- ggtree(x) + geom_tiplab() +
geom_nodelab(aes(subset=!isTip, label=node), hjust = -.1, color = "red")
zoomClade(p, 21, xexpand = .2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.