View source: R/clade-functions.R
rotate | R Documentation |
rotate selected clade by 180 degree
rotate(tree_view = NULL, node)
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 |
ggplot2 object
Guangchuang Yu
x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
rotate(p, 17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.