This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bootstrap values on the phylogenetic tree in Ape r package

Hi there, I've constructed the tree with bootstrap supports in Ape package. But i'd prefer to get bootstrap values in percentage not in absolute number of replications. How can i do that in Ape?

r phylogenetics

Access the values in the returned object and divide by the number of bootstrap samples.

There is no slot named node.label in my object of class 'phylo' (i use ape 5.3). So i can not execute something like:

tree$node.label <- as.numeric(tree$node.label)/1000

Maybe show then what you do have. Some code might also be useful.

1 answer

I solved the issue by the R code:

plot(stree)
nodelabels(round(myBoots/1000*100),adj = 0.7)

where myBoots is numeric vector containing my bootstrap values

Log in to answer this question.