posum.plot {posum}R Documentation

Default posum model plotting

Description

Produces population and death rate surface plots from a fitted model object as produced by posum.

Usage

posum.plot(b,fdi=b$options$fdi,m=b$options$con.mesh,con=FALSE,theta=60)

Arguments

b Fitted model object as produced by posum (basically a modified gam object).
fdi parameter used to control finite difference interval length used to obtain derivatives dequired for death rate estimation. The population and death surfaces are evaluated on a regular m by m mesh. The smaller of the age and time intervals of this mesh is multiplied by fdi to get the required finite difference interval.
m population and death rate surfaces are evaluated and plotted on regular m by m meshes.
con if TRUE then contour plots are produced, otherwise perspective plots.
theta angle from which to view perspective plot.

Details

Evaluation uses calls to predict.gam to evaluate the model on a regular grid. Slightly shifted grids are used to obtain the death rates by finite differencing.

Value

Two plots are produced.

WARNING

Author(s)

Simon N. Wood snw@st-and.ac.uk

References

http://www.ruwpa.st-and.ac.uk/simon.html

See Also

posum, posum.plot, posum.stage.plot,

Examples

data<-population.data(fam="p",adult=TRUE) #simulate data
b<-posum(data,fam="p")
op<-par(mfrow=c(2,2))
posum.plot(b)
posum.plot(b,con=TRUE)
par(op)

[Package Contents]