posum.atplot {posum}R Documentation

Check posum age boundaries

Description

Produces a plot illustrating the stage boundaries assumed used by posum, along with sampling times, which stages have data at which sample times, and the location of any point estimates of surface height.

Usage

posum.atplot(data,n.grid)

Arguments

data A data frame containing the following named variables:
y
The stage population data. This may contain NA's: a feature whose prime function is to allow the user to supply extra information about stage boundaries, if needed.
stage
Which stage each element of y relates to.
a0
The lower age boundary for this observation.
a1
The upper age boundary for this observation. NA implies an adult stage. If an element is equal to the corresponding a0 element then the corresponding y is taken as a direct observation of the population surface height (rather than the usual integral under it.)
t
Sample time for each observation.
n.grid The number of time points to use for plotting the age boundaries - more for a smoother curve.

Details

Age boundaries are shown as continuous black curves. Red lines indicate each sample-time-stage combination for which there is an observation. Adult observations are shown by red lines not terminating at a black stage boundary curve. Locations of point observations of the surface height are marked by red circles.

Value

The function produces a plot.

WARNING

Author(s)

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

References

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

See Also

age.max, cm.splinefun, hyman.filter, posum.check, stage.bound,

Examples

data<-population.data(fam="p",adult=TRUE) #simulate data
posum.atplot(data)

[Package Contents]