rotate: rotate

View source: R/clade-functions.R

rotateR Documentation

rotate

Description

rotate selected clade by 180 degree

Usage

rotate(tree_view = NULL, node)

Arguments

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

Value

ggplot2 object

Author(s)

Guangchuang Yu

Examples

x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
rotate(p, 17)

GuangchuangYu/ggtree documentation built on April 12, 2024, 5:20 a.m.