Learn R Programming

IPMpack (version 1.6)

picGrow: Makes pictures of data with growth models

Description

Takes the data file and a growth object and shows the model fit over the data.

Usage

picGrow(dataf, growObj, mainTitle = "Growth",...)

Arguments

dataf
a dataframe with columns `size' and `sizeNext'(`size' is continuous stage variable at t, `sizeNext' is stage variable at t+1); facultatively, dataf may include `covariate' and `covariateNext' for a single discrete covariate, indicating values at t, an
growObj
an object of class growthObj that contains a fit for which R has methods for the function "predict".
mainTitle
a character string that will be used as in the `main' argument of plot. Defaults to `Growth'.
...
other arguments to plot

Value

  • Returns nothing.

Details

Note that this model will only work with growth objects that contain objects of class glm or lm, i.e. ones for which R has defined methods for the function "predict".

See Also

makeGrowthObj, picSurv

Examples

Run this code
dff <- generateData()
gr1 <- makeGrowthObj(dff)
picGrow(dff, gr1)

Run the code above in your browser using DataLab