pseudo_dates | R Documentation |
This function assigns a date (in generations) to each node in an admixture graph and is used in msprime_sim
and msprime_genome
.
The date of the node will correspond to the y-coordinate of that node used for plotting in plotly_graph
,
unless the fix_leaf
option is set to TRUE
, in which case the dates of all leaf nodes returned by get_leafnames
will be set to 0.
pseudo_dates(graph, time = 1000, fix_leaf = FALSE)
graph |
An admixture graph |
time |
A scalar by which y-coordinate values will be multiplied to get dates |
fix_leaf |
A boolean specifying if the dates of the leaf nodes will be fixed at time 0 (i.e., at the most recent time).
If |
A named vector with pseudo dates for each graph node
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.