rotate_tree: rotate_tree

View source: R/layout.R

rotate_treeR Documentation

rotate_tree

Description

rotate circular tree in a certain angle

Usage

rotate_tree(treeview, angle)

Arguments

treeview

tree view in circular layout

angle

the angle of rotation

Value

updated tree view

Author(s)

Guangchuang Yu

Examples

tree <- rtree(15)
p <- ggtree(tree) + geom_tiplab()
p2 <- open_tree(p, 180)
rotate_tree(p2, 180)

YuLab-SMU/ggtree documentation built on Nov. 3, 2024, 4:15 p.m.