plotDistrOvipos {Lifertable}R Documentation

Plot for Distribution of Age at Oviposition

Description

This function generates a plot illustrating the Distribution of Oviposition (y-axis) versus Age (x-axis), with separate representations for each group if multiple groups exist. The data is sourced from the original database.

Usage

plotDistrOvipos(
  ColumnFemale,
  ColumnAge,
  ColumnEggs,
  ColumnGroups,
  data,
  InitiationOfAdultStage = 0
)

Arguments

ColumnFemale

Data vector containing information on Females.

ColumnAge

Data vector containing information on Age.

ColumnEggs

Data vector containing information on the Number of Eggs Laid.

ColumnGroups

Optional data vector containing information on the Groups. It is optional if the database only contains information about one group.

data

An optional data frame containing the variables. If not found in data, the variables are taken from environment.

InitiationOfAdultStage

Age at which females became adults. If the database contains records from birth, entering this value is unnecessary. ONLY ENTER THIS VALUE if the database begins from the adult stage, and the values in ColumnAge do not reflect the preceding stage (i.e. they contain the ages: 1, 2, 3, ...).

Value

Returns an object of class c("gg", "ggplot").

Examples

## The Insects database will be used to generate the plot.

plotDistrOvipos(Female, Age, Eggs, Group, data = Insects)

## The following expression will yield the same result as described above:

plotDistrOvipos(Insects$Female, Insects$Age, Insects$Eggs, Insects$Group)



[Package Lifertable version 0.0.1 Index]