Getting started

To demonstrate, we will plot the simple network: (A,((B,#H1),(C,(D)#H1)));

To start plotting, use the packages:

julia> using PhyloNetworks, PhyloPlots

Then read the topology

julia> net = readnewick("(A,((B,#H1),(C,(D)#H1)));")HybridNetwork, Rooted Network
9 edges
9 nodes: 4 tips, 1 hybrid nodes, 4 internal tree nodes.
tip labels: A, B, C, D
(A,((B,#H1),(C,(D)#H1)));

and call plot, as shown below.

plot(net);

example1

For the function's full documentation, see here: plot.

version history
  • By default, v3 uses a :majortree style and :both hybrid edges curved. Instead, v2 used the :fulltree style by default, and had no option to curve edges.
  • The v0.3 syntax plot(net, :R; ...) still worked in v1 but was deprecated, and then removed in v2. For example, we could still use plot(net, :R; showNodeNumber=true) in v1, but in v2 (and later) we have to use instead plot(net; shownodenumber=true).
  • Compared to v0.3, v1 does not support the Gadfly-based plots, and uses small-case-only argument names.