posum.plot {posum} | R Documentation |
Produces population and death rate surface plots from a fitted
model object as produced by posum
.
posum.plot(b,fdi=b$options$fdi,m=b$options$con.mesh,con=FALSE,theta=60)
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. |
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.
Two plots are produced.
Simon N. Wood snw@st-and.ac.uk
http://www.ruwpa.st-and.ac.uk/simon.html
posum
,
posum.plot
,
posum.stage.plot
,
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)