posum.atplot {posum} | R Documentation |
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.
posum.atplot(data,n.grid)
data |
A data frame containing the following named variables:
NA 's:
a feature whose prime function is to allow the user to
supply extra information about stage boundaries, if
needed.y relates to.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.) |
n.grid |
The number of time points to use for plotting the age boundaries - more for a smoother curve. |
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.
The function produces a plot.
Simon N. Wood snw@st-and.ac.uk
http://www.ruwpa.st-and.ac.uk/simon.html
age.max
,
cm.splinefun
,
hyman.filter
,
posum.check
,
stage.bound
,
data<-population.data(fam="p",adult=TRUE) #simulate data posum.atplot(data)