Re: [R-sig-phylo] distances between the nodes

2017-03-01 Thread Klaus Schliep
> *To:* Eduardo Ascarrunz > *Cc:* Wierzbinska, Justyna; r-sig-phylo@r-project.org > *Subject:* Re: [R-sig-phylo] distances between the nodes > > > > Dear Justyna > > tr$edge does not store coordinates, see help(phylo). > > if you want the coordinates of the nodes of

Re: [R-sig-phylo] distances between the nodes

2017-03-01 Thread Wierzbinska, Justyna
Dear Klaus, Thanks a lot for your help and what is in that case xx and yy? Justyna From: Klaus Schliep [mailto:klaus.schl...@gmail.com] Sent: Friday, February 24, 2017 6:13 PM To: Eduardo Ascarrunz Cc: Wierzbinska, Justyna; r-sig-phylo@r-project.org Subject: Re: [R-sig-phylo] distances between

Re: [R-sig-phylo] distances between the nodes

2017-02-24 Thread Klaus Schliep
Dear Justyna tr$edge does not store coordinates, see help(phylo). if you want the coordinates of the nodes of your last plotted tree you can get them: library(ape) tree = rtree(5) nodelabels() tiplabels() last_plot = get("last_plot.phylo", envir = .PlotPhyloEnv) last_plot$xx and last_plot$yy conta

Re: [R-sig-phylo] distances between the nodes

2017-02-24 Thread Eduardo Ascarrunz
Hi Justyna, If you want patristic distances (or node distances) you can use distTips from the adephylo package. To make edgelabels show the branch lengths you can use edgelabels(tr$edge.length) Does that do what you wanted? Cheers, Eduardo 2017-02-23 16:41 GMT+01:00 Wierzbinska, Justyna < j.w