fast_plot: Fast version of graph plotting.

Description Usage Arguments Value See Also Examples

Description

This is a fast, deterministic and stand-alone function for visualizing the admixture graph. Has the bad habit if sometimes drawing several nodes at the exact same coordinates; for clearer reasults try plot.agraph (which, on the other hand, relies on numerical optimising of a compicated cost function and might be unpredictable).

Usage

1
2
fast_plot(x, ordered_leaves = NULL, show_admixture_labels = FALSE,
  show_inner_node_labels = FALSE, ...)

Arguments

x

The admixture graph.

ordered_leaves

The leaf-nodes in the left to right order they should be drawn.

show_admixture_labels

A flag determining if the plot should include the names of admixture proportions.

show_inner_node_labels

A flag determining if the plot should include the names of inner nodes.

...

Additional plotting options.

Value

A plot.

See Also

plot.agraph

Examples

1
2
3
4
5
6
7
8
# taken from the collection of all the admixture graphs with four leaves and at
# most two admixture events:

fast_plot(four_leaves_graphs[[24]](c("A", "B", "C", "D")))

# To be fair, here is a graph that looks all right:

fast_plot(four_leaves_graphs[[25]](c("A", "B", "C", "D")))

admixturegraph documentation built on May 2, 2019, 6:02 a.m.