View source: R/clade-functions.R
viewClade | R Documentation |
view a selected clade of tree, clade can be selected by specifying a node number or determined by the most recent common ancestor of selected tips
viewClade(tree_view = NULL, node, xmax_adjust = 0)
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 |
xmax_adjust |
adjust the max range of x axis |
clade plot
Guangchuang Yu
x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
viewClade(p, 18, xmax_adjust = 0.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.