Plot igraph tree objects with ggtree

This is a good idea.

ggtree is designed for phylogenetic analysis. Some of the functionalities may not be applied to other objects like igraph directly. To make the support more smoothly is to convert the igraph object as a phylo object. So that after conversion, ggtree can be used to visualize it and all functionalities are supported.

The issue for conversion is that igraph allow singleton as in the example posted while phylo don’t allow since it’s meaningless in evolution.

I will consider to develop a conversion function in future version.


G Yu, DK Smith, H Zhu, Y Guan, TTY Lam*. ggtree: an R package for visualization and annotation of phylogenetic trees with their covariates and other associated data. Methods in Ecology and Evolution. doi:10.1111/2041-210X.12628.

Read more here: Source link