Description Usage Arguments Value See Also Examples
Create an admixture graph object, an acyclic directed graph.
1 2 | agraph(leaves, inner_nodes, parent_edges,
admixture_proportions = extract_admixture_proportion_parameters(parent_edges))
|
leaves |
The names of the leaves in the admixture graph. Do not use |
inner_nodes |
The name of the inner nodes in the admxture graph. Do not use |
parent_edges |
The list of edges in the graph, created by
|
admixture_proportions |
The list of admixture proportions; created by
|
An admixture graph object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | leaves <- c("A", "B", "C", "D")
inner_nodes <- c("ab", "b", "bc", "abc", "abcd")
edges <- parent_edges(c(edge("A", "ab"),
edge("B", "b"),
edge("C", "bc"),
edge("D", "abcd"),
edge("ab", "abc"),
edge("bc", "abc"),
edge("abc", "abcd"),
admixture_edge("b", "ab", "bc")))
admixtures <- admixture_proportions(c(admix_props("b", "ab", "bc", "x")))
graph <- agraph(leaves, inner_nodes, edges, admixtures)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.