viewClade: viewClade

View source: R/clade-functions.R

viewCladeR Documentation

viewClade

Description

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

Usage

viewClade(tree_view = NULL, node, xmax_adjust = 0)

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

xmax_adjust

adjust the max range of x axis

Value

clade plot

Author(s)

Guangchuang Yu

Examples

x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
viewClade(p, 18, xmax_adjust = 0.)

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