revts: revts

View source: R/axis.R

revtsR Documentation

revts

Description

reverse timescle x-axis by setting the most recent tip to 0

Usage

revts(treeview)

Arguments

treeview

original tree view

Details

'scale_x_continuous(labels=abs)' is required if users want to set the x-axis lable to absolute value

Value

updated tree view

Author(s)

Guangchuang Yu

Examples

tr <- rtree(10)
p <- ggtree(tr) + theme_tree2()
p2 <- revts(p) 
p2 + scale_x_continuous(labels=abs)

GuangchuangYu/ggtree documentation built on Oct. 31, 2024, 10:10 a.m.