revts | R Documentation |
reverse timescle x-axis by setting the most recent tip to 0
revts(treeview)
treeview |
original tree view |
'scale_x_continuous(labels=abs)' is required if users want to set the x-axis lable to absolute value
updated tree view
Guangchuang Yu
tr <- rtree(10)
p <- ggtree(tr) + theme_tree2()
p2 <- revts(p)
p2 + scale_x_continuous(labels=abs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.