Re: [R-sig-phylo] Plotting rooted tree with bootstrap values (ape/phangorn)

2015-08-31 Thread Emmanuel Paradis
Hi Kamila & Klaus, Another solution could be to use nodelabels(), eg: plot(nrooted) nodelabels(text = b$BP) See the examples in ?nodelabels for some ways to format the labels. Best, Emmanuel Le 31/08/2015 15:57, Klaus Schliep a écrit : Dear Kamila, plotBS checks if trees are rooted or not

Re: [R-sig-phylo] Plotting rooted tree with bootstrap values (ape/phangorn)

2015-08-31 Thread Klaus Schliep
Dear Kamila, plotBS checks if trees are rooted or not and if not midpoint roots the tree nrooted <- root(nj(dist),outgroup=x) is.rooted(nrooted) # returns FALSE however the ape function does not pick up that the tree is rooted. Add the argument resolve.root=TRUE: nrooted <- root(nj(dist),outgroup=

[R-sig-phylo] Plotting rooted tree with bootstrap values (ape/phangorn)

2015-08-31 Thread Kamila Naxerova
Hi all, I have a (almost certainly trivial) question about plotting a rooted tree with bootstrap values using ape and phangorn. I am using a simple script that looks like this: dist <- daisy(matrix,metric="gower") nrooted <- root(nj(dist),outgroup=x) plot(nrooted) ## this plots the tree with t