Re: [R-sig-phylo] Aligning tree tip labels together in ape

2018-08-27 Thread Carleson, Nick
built on top of the "grammar of graphics" >> ggplot package. >> >> >> Best, >> >> Bjørn Tore Kopperud >> >> >> G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for >> visualization and annotation of phylogenetic trees with

Re: [R-sig-phylo] Aligning tree tip labels together in ape

2018-08-25 Thread Emmanuel Paradis
Hi Nick, This can be fixed by editing the code of tiplabels() with the usual procedure: fix(tiplabels) then find this line of code: tmp <- rect2polar(XX, YY) and insert below the following one: if (lastPP$align.tip.label) tmp$r[] <- max(tmp$r) save and close. Your commands

Re: [R-sig-phylo] Aligning tree tip labels together in ape

2018-08-24 Thread Liam J. Revell
Hi Nick. The following is a 'solution' that works with phytools; however, you should keep in mind that you will not generally be able to use a constant offset value if your tip labels vary in length. In that case, you would either have to use a variable offset or figure out the minimum

Re: [R-sig-phylo] Aligning tree tip labels together in ape

2018-08-24 Thread Bjørn Tore Kopperud
on. 2017, 8(1):28-36.? From: R-sig-phylo on behalf of Carleson, Nick Sent: 24 August 2018 17:04 To: r-sig-phylo@r-project.org Subject: [R-sig-phylo] Aligning tree tip labels together in ape Hello all, I'm using the R package 'ape' to make non-ultrametric phylogenetic trees . I want to align tip