open_tree: open_tree

View source: R/layout.R

open_treeR Documentation

open_tree

Description

transform a tree in either rectangular or circular layout into the fan layout that opens with a specific angle

Usage

open_tree(treeview, angle)

Arguments

treeview

tree view in rectangular/circular layout

angle

open the tree at a specific angle

Value

updated tree view

Author(s)

Guangchuang Yu

Examples

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

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