as.networx convert splits objects into a networx object.
plot.networx plot phylogenetic network or split graphs.
as.networx(x, ...)
"as.networx"(x, planar = FALSE, coord = c("none", "2D", "3D"), ...)
"plot"(x, type="3D", use.edge.length = TRUE, show.tip.label=TRUE, show.edge.label=FALSE, edge.label = NULL, show.node.label=FALSE, node.label = NULL, show.nodes=FALSE, tip.color="black", edge.color="black", edge.width=3, edge.lty=1, split.color=NULL, split.width=NULL, split.lty=NULL, font = 3, cex = par("cex"), cex.node.label=cex, cex.edge.label=cex, col.node.label = tip.color, col.edge.label = tip.color, font.node.label = font, font.edge.label = font, ...)"splits" (as.networx) or "networx" (plot)
TRUE, i.e. the labels are shown).
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 = FALSE will create a planar split graph based on a
cyclic ordering. These objects can be nicely plotted in "2D".
So far not all parameters behave the same on the the rgl "3D"
and basic graphic "2D" device. Often it is easier (and safer) to supply vectors of graphical parameters for splits (e.g. splits.color). These overwrite values edge.color.
consensusNet, neighborNet, splitsNetwork, hadamard,
distanceHadamard, layout_with_kk,
evonet, as.igraph, densiTree
set.seed(1)
tree1 = rtree(20, rooted=FALSE)
sp = as.splits(rNNI(tree1, n=10))
net = as.networx(sp)
plot(net, "2D")
## Not run:
# # also see example in consensusNet
# example(consensusNet)
# ## End(Not run)
Run the code above in your browser using DataLab