Learn R Programming

IPMpack (version 1.6)

picSurv: Makes pictures of survival.

Description

Produces figures of value for assessing survival fit given data.

Usage

picSurv(dataf, survObj, ncuts = 20, makeTitle = "Survival", ...)

Arguments

dataf
a dataframe with columns `size' and `sizeNext'(`size' is continuous stage variable at t, `sizeNext' is continuous stage at t+1); facultatively, dataf may include `covariate' and `covariateNext' for a single discrete covariate, indicating values at t, and
survObj
an object of class survObj.
ncuts
number of consecutive values for which means of survival and continuous (e.g. size) stage are taken for the plotting.
makeTitle
character that defines title, defaults to "Survival"
...
extra arguments to plot (e.g, ylim, etc).

Value

  • Returns nothing.

See Also

makeSurvObj, picGrow

Examples

Run this code
dff <- generateData()
sv1 <- makeSurvObj(dff)
picSurv(dff,sv1)

Run the code above in your browser using DataLab