plot_tree_events | R Documentation |
Plots simpop events on a the tree
plot_tree_events(tree, legpos = "topleft", fmode = 0, ...)
tree |
phylo/simpop |
legpos |
legend position |
fmode |
0=no selection coeff annotation;1=per driver selection coeff;2=composite driver selection coeff |
... |
< |
simpop object
cfg=getDefaultConfig(target_pop_size =5e4,rate=0.1)
params=list(n_sim_days=2*365,b_stop_at_pop_size=1,b_stop_if_empty=0)
growthphase=sim_pop(NULL,params=params,cfg)
stree=get_subsampled_tree(growthphase,50)
plot_tree_events(stree,fmode=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.