## The main object will be created using the Insects database:
lft <- lifertable(ColumnFemale = Female,
ColumnAge = Age,
ColumnEggs = Eggs,
SexRate = Sexrate,
ColumnGroups = Group,
data = Insects,
TotalEggs = TRUE)
## Possible usage scenarios
## 1. Direct Usage of the "lft" Object:
plotEggs(lft)
## 2. Assigning the component "TOTAL.EGGS" to an object:
TEggs <- lft$TOTAL.EGGS
plotEggs(TEggs)
## 3. Direct usage of the component:
plotEggs(lft$TOTAL.EGGS)
Run the code above in your browser using DataLab