Description Usage Arguments Value Examples
ape can already convert from evonet to igraph; the advantage of this function is that it uses the node ids from the evonet object for labels in igraph.
1 | ConvertEvonetToIgraphWithNodeNumbers(phy.graph)
|
phy.graph |
An ape::evonet object (a phylogeny stored in phylo format that also includes a reticulation matrix) |
An igraph network
1 2 3 4 5 | phy <- ape::rcoal(5)
phy.evo <- ape::evonet(phy, from=1, to=2)
plot(phy.evo) # this is the ape plot
phy.igraph <- ConvertEvonetToIgraphWithNodeNumbers(phy.evo)
plot(phy.igraph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.