Description Usage Arguments Examples
Plot all generations of a model run, one plotting window
per generation. Note that the number of plotting windows needs to be
set prior to calling (probably using par(mfrow=c(r,c),...
).
1 |
p.list |
List of populations as .ppp, probably produced by running a model. |
xlim, ylim |
Required explicitly if used, since |
cex |
Size of points used for plotting |
pch |
Point type |
... |
Other graphical parameters |
1 2 3 4 5 6 7 8 9 10 | # Create a default population
p <- create_ibm_population()
# Create bigger window for population to expand
p$window <- owin(c(-50,50),c(-50,50),unitname="metres")
# Use default parameters for behaviour.
pm <- multiple.step(steps=5,curr.pop=p,move.table=movement.table(),
survival.table(),breeding.table(),habitat.surface=NA,crowding.table())
op <- par(mfrow=c(2,3),mar=c(1,1,0.5,0.5)) # setup graphics
plot.all.gens(pm)
par(op) # reset graphics
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.