plotSurvivalCurve {Lifertable} | R Documentation |
Survival curve for the Life and Fertility Table
Description
This function generates the graphical representation of the Life Table. Survival (y-axis) versus Age (x-axis)
Usage
plotSurvivalCurve(object)
Arguments
object |
|
Value
Returns an object of class
c("gg", "ggplot").
Examples
## The main object will be created using the Insects database:
lft <- lifertable(Female, Age, Eggs, Sexrate, ColumnGroups = Group,
data = Insects)
## Possible usage scenarios
## 1. Direct Usage of the "lft" Object:
plotSurvivalCurve(lft)
## 2. Assigning the component "LIFERTABLE" to an object:
lifeTable <- lft$LIFERTABLE
plotSurvivalCurve(lifeTable)
## 3. Direct usage of the component:
plotSurvivalCurve(lft$LIFERTABLE)
[Package Lifertable version 0.0.1 Index]