as.networx: Conversion among phylogenetic network objects
Description
as.networx convert splits objects into a networx
object. And most important there exists a generic plot function to
plot phylogenetic network or split graphs.
A networx object hold the information for a phylogenetic
network and extends the phylo object. Therefore some generic function
for phylo objects will also work for networx objects. The
argument planar = TRUE will create a planar split graph based on a
cyclic ordering. These objects can be nicely plotted in "2D".
References
Schliep, K., Potts, A. J., Morrison, D. A. and Grimm, G. W. (2017),
Intertwining phylogenetic trees and networks. Methods Ecol Evol.
8, 1212--1220. doi:10.1111/2041-210X.12760
set.seed(1)
tree1 <- rtree(20, rooted=FALSE)
sp <- as.splits(rNNI(tree1, n=10))
net <- as.networx(sp)
plot(net)
if (FALSE) {
# also see example in consensusNetexample(consensusNet)
}