plotEggs {Lifertable}R Documentation

Plot for the Number of Eggs Laid per Female

Description

This function generates a Plot representing the number of Eggs Laid by each Female throughout the entire experiment.

Usage

plotEggs(object)

Arguments

object

object accepts 2 classes of objects:

  • An object inheriting from lifertable(), representing the Life and Fertility Table.

  • An object of class lifertableTotEggs inherited from lifertable(). This is the object that displays the total number of eggs laid per female.

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, 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)



[Package Lifertable version 0.0.1 Index]