Hi,
I am having an issue plotting nodelabels. Everything works fine until I reverse the x axis, then the nodelabels plot next to the tree, almost like a facet.
Example:
x <- read.beast("/Applications/FigTree/influenza.tree")
x1 <- ggtree(x) + theme_tree2()
x2 <- revts(x1)
x3 <- x2 + scale_x_continuous(breaks=c(-13:0), labels=abs(-13:0))
x3
Then once I add the node labels:
x4 <- x3 + geom_nodelab(aes(x=branch, label=round(posterior, 2)))
x4
I have tried this in different orders (node labels first, then revts()) but I can't figure it out.
Any ideas?
Thanks you!
Jon