plot.simulation: Animate a Simulation

Description Usage Arguments

Description

Sequentially plot the time steps in a simulation, optionally cropped.

Usage

1
2
3
4
plot.simulation(sim, pop, max.frames = 300, zlim = range(sim$N, finite =
  TRUE), pause = interactive(), legend.width = 2, legend.mar = 12,
  animate = NULL, cleanup = FALSE, duration = 10, height = 2,
  width = length(pop$genotypes) * 2, res = 300, pointsize = 10, ...)

Arguments

sim

A simulation object.

pop

The corresponding population object.

max.frames

Maximum number of frames to plot.

zlim

Range of values to represent by colors, consistently.

pause

Pause for user input between frames? (left click to continue, right click to stop)

legend.width, legend.mar

Parameters controlling how the legend is displayed.

animate

If not FALSE, instead of plotting the result, package frames into an mp4 animation with this file name.

cleanup

Whether to delete pngs produced if 'animate' is TRUE.

duration

Duration of the animation in seconds.

...

Additional parameters passed to plot( ).


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.