label edge number in ggtree

FavoriteLoadingAdd to favorites

This is a question from ggtree user. In ape and phytools, it’s easy to label edge using the edgelabels function. set.seed(1) tr = rtree(30) library(ape) plot(tr, main=”ape”) edgelabels() I don’t see any necessity to label edge numbers, as they are meaningless. The number is labeled as the row index of tr$edge, and edge can be uniquely mapped to child node.…
Original post: label edge number in ggtree
Source: R-bloggers