evolution animation

Share:

Description

Create an animation that summarizes a simulation, using sim.summary.plot for every generation of the simulation.

Usage

1
evolution.animation(df, outdir = tempfile(), tit = "Allele frequency and ancestral estimate evolution")

Arguments

df

Result of sim2df.

outdir

Subdirectory for plot files, to be created.

tit

Title for the animation.

Author(s)

Toby Dylan Hocking <toby.hocking@etu.upmc.fr>

Examples

1
2
3
4
library(nicholsonppp)
sim <- sim.drift.selection()
df <- sim2df(sim)
evolution.animation(df[df$generation%%10==1,])