plot_tree_events: Plots simpop events on a the tree

plot_tree_eventsR Documentation

Plots simpop events on a the tree

Description

Plots simpop events on a the tree

Usage

plot_tree_events(tree, legpos = "topleft", fmode = 0, ...)

Arguments

tree

phylo/simpop

legpos

legend position

fmode

0=no selection coeff annotation;1=per driver selection coeff;2=composite driver selection coeff

...

<dynamic-dots> . Parameters that are passed to plot_tree

Value

simpop object

Examples

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)

NickWilliamsSanger/rsimpop documentation built on Sept. 6, 2024, 12:42 a.m.