New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time scale #87

Closed
zuranojp opened this Issue Nov 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@zuranojp

zuranojp commented Nov 5, 2016

Hi Guangchuan,

Can you add an option into the theme_tree2() function to show time scale as Reverse axis in Figtree or like AxisPhylo() function.

require(ape)
tr <- rtree(10)
ggtree(tr) + theme_tree2()

I´m suggesting to show the time whether possible like

tr <- rtree(10)
plot(tr)
axisPhylo()

@zuranojp zuranojp changed the title from reverse argument to show time scale to argument to show time scale Nov 5, 2016

@zuranojp zuranojp changed the title from argument to show time scale to time scale Nov 5, 2016

@GuangchuangYu

This comment has been minimized.

Show comment
Hide comment
@GuangchuangYu

GuangchuangYu Nov 7, 2016

Owner
> p =ggtree(tr) + theme_tree2()
> p1 = revts(p)
> p2 = p1 + scale_x_continuous(breaks=c(-4:0), labels=abs(-4:0))
> multiplot(p, p1, p2, ncol=3)

revts function is now available in github version.

screen shot 2016-11-07 at 11 00 08 am

Owner

GuangchuangYu commented Nov 7, 2016

> p =ggtree(tr) + theme_tree2()
> p1 = revts(p)
> p2 = p1 + scale_x_continuous(breaks=c(-4:0), labels=abs(-4:0))
> multiplot(p, p1, p2, ncol=3)

revts function is now available in github version.

screen shot 2016-11-07 at 11 00 08 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment