plot.all.gens: Plot all generations of a model as points

Description Usage Arguments Examples

View source: R/summary.R

Description

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),...).

Usage

1
plot.all.gens(p.list, xlim = NA, ylim = NA, cex = 0.7, pch = 16, ...)

Arguments

p.list

List of populations as .ppp, probably produced by running a model.

xlim, ylim

Required explicitly if used, since plot.ppp uses the .ppp window as the default window to scale the plot.

cex

Size of points used for plotting

pch

Point type

...

Other graphical parameters

Examples

 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

pwhigham/spatibm documentation built on Aug. 30, 2019, 1:16 p.m.