Sequentially plot the time steps in a simulation, optionally cropped.
1 2 3 4 |
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( ). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.