HI, I am trying to add bootstrap values from a newick file. Some searches on the internet have turned up the following code, but the values are displayed as decimals. Is there any way to multiply the number by 100 and have it cut off at the decimal point so 0.909 would show up as 91. I am also having trouble getting the numbers to display nicely at the node (i.e., rotated along the line and not overlapping other parts of the image). Here is my code:
tg = ggtree(t, layout = "circular", size = .1)
p <- tg + geom_tippoint(aes(x=x+.003, subset=(abs(angle) >= 90), angle=angle+180), fill=Fill, color=Outline, shape=Shape, size=4, stroke = .1) + xlim(-.1, .15)
q <- p + geom_treescale(x=0.05, width=.005, color='red')
r <- q + geom_text2(aes(label=label, subset=label>.07 & !isTip), hjust=-.2)
r
and the resulting tree is attached.
Other than these minor issues, I am getting close to what we want for our final product. Thank you for putting this all together!
Kind regards,
Kirston