0

I am trying to reduce branch length of the tree in ggtree with the following code:

ggtree(tree) +
   geom_tiplab() + 
   xlim(0, 0.08)

But it does not work. How to regulate branch length? I manage to produce this picture.enter image description here

Could you please help with this.

Ideally, I need a tree as in the picture attached. enter image description here

Peter
  • 11,500
  • 5
  • 21
  • 31
Anna
  • 53
  • 6
  • Great if you could include a minimal extract of data in the question using `dput(tree_or_your_data)` to make the question reproducible [MRE] – Peter Dec 11 '21 at 19:46
  • Hi, Peter. Thank you for your assistance. Shall I include it as a text file here? – Anna Dec 12 '21 at 08:12
  • Data should be pasted into the question, in the same way as you paste in code. – Peter Dec 12 '21 at 08:14
  • I have about thousand samples in the phylogenetic tree. Is there is a way to subset some part of the tree? Otherwise I can post the whole three here – Anna Dec 12 '21 at 10:43
  • Just subset the data maybe using `dput(head(your_data, n = a value which gives a minimal example))` or more usefully subset one branch? – Peter Dec 12 '21 at 10:46
  • This command still outputs the whole data. How to subset a branch? Thank you – Anna Dec 12 '21 at 11:06

0 Answers0