Entering edit mode
9 months ago
M.
▴
30
Hi,
I am generating a tree figure with ggtree. But the output keeps coming upside down no matter which parameter I use or change. Does anyone have any idea about this?
This is my command line:
ggtree_obj <- ggtree(species_tree, ladderize = FALSE, layout = "rectangular")+
theme_tree2(legend.position="none")
Thank you for your help.
Please show your output and an example from the ggtree manual that demonstrates that your tree is indeed upside down.
My output is really big, it contains 2k species. I'm not sure how can I show it from here, but it is completely reversed with the newick format. The first leaf in newick, takes place at the bottom of the tree in ggtree. The topology stays the same. Is there any parameter you know that could solve something like this? I tried to use grid.arrange(p, flip(p, node1, node2) but it didnt worked either.
There has to be something you're able to show to demonstrate that it's flipped. Also, consult the manual - maybe that'll give you a hint on what to expect and where to start if your expectations don't align with ggtree's features.