gen: The output of a run of make_gen.BipartiteEvol
spec: The output of a run of define_species.BipartiteEvol
trait.id: The trait dimension used to color the genealogies, phylogenies an network with trait values
lwdgen: Width of the branches of the genealogies, default to 1
lwdsp: Width of the branches of the phylogenies, default to 1
scale: Optional, used to force the trait scale
Details
The upper line shows the genealogies colored with trait values for both guilds (the number above shows the depth of the respective genealogy).
The second line shows the phylogenies colored with trait values for both guilds (the number above shows the tip number of the respective phylogeny).
On the third line there is, from left to right, the trait distribution within individuals in guild P, trait of the individual in H as a function of the trait of the interacting individual in P, and the trait distribution within individuals in guild H (for the dimension trait.id).
The lower line shows the quantitative interaction network, with species colored according to their mean trait value (for the dimension trait.id).
References
Maliet, O., Loeuille, N. and Morlon, H. (2020), An individual-based model for the eco-evolutionary emergence of bipartite interaction networks. Ecol Lett. doi:10.1111/ele.13592
Author(s)
O. Maliet
See Also
sim.BipartiteEvol
Examples
# run the modelset.seed(1)if(test){mod = sim.BipartiteEvol(nx =8,ny =4,NG =1000, D =3, muP =0.1, muH =0.1, alphaP =0.12,alphaH =0.12, rP =10, rH =10, verbose =100, thin =5)#build the genealogiesgen = make_gen.BipartiteEvol(mod)plot(gen$H)#compute the phylogeniesphy1 = define_species.BipartiteEvol(gen,threshold=1)#plot the resultplot_div.BipartiteEvol(gen,phy1,1)}