ggtree tip label position (depth)
0
0
Entering edit mode
Roope • 0
@b2a81e7f
Last seen 7 months ago
Finland

I have previously used ggtree to make a circular phylogram.

Back then, the tip labels (with geom_tiplab2) would appear as attached, with some tip labels on the outer layer and others deeper within the circular plot:

enter image description here

Today, I was using the exact same code. But I have since updated R and ggtree. However, now, using the same code (I'm quite sure) all tip labels are appearing on the outermost layer of the circular tree. So it appears like so, with all tip labels aligned around the outer length:

enter image description here

What might be the problem? I'd like the tip labels to be like they used to (in the picture above).

Here is my code:


tree <- ggtree(ca, layout = "circular", color = "slategray4", alpha = 0.7, size = 0.5) + 
  geom_tiplab(size = 1) +
  #  geom_nodelab(aes(label = node), size = 3) +
  geom_rootpoint(color = "slategrey", size = 1) +
  geom_rootedge(rootedge = 0.6, size = 0)

Thanks!

EDIT: I "fixed" this by reverting back to R version 4.2.2. Don't know the root cause of the issue.

ggtree • 443 views
ADD COMMENT

Login before adding your answer.

Traffic: 694 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6