picSurv: Makes pictures of survival.

Description Usage Arguments Value Author(s) See Also Examples

Description

Produces figures of value for assessing survival fit given data.

Usage

1
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 at t+1, respectively; these must take values of sequential integers, starting at ‘1’. For models fitting growth increment, 'incr' or 'logincr' may be directly provided as a column in the dataframe, otherwise they are calculated as dataf$sizeNext-dataf$size or log(dataf$sizeNext-dataf$size), respectively.

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.

Author(s)

C. Jessica E. Metcalf, Sean M. McMahon, Roberto Salguero-Gomez, Eelke Jongejans & Cory Merow.

See Also

makeSurvObj, picGrow

Examples

1
2
3
dff <- generateData()
sv1 <- makeSurvObj(dff)
picSurv(dff,sv1)


Search within the IPMpack package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.