For MGDrivE2 simulations of mosquito lifecycle dynamics in a single node or metapopulation network, this function sums over the male mate genotype to get population trajectories of adult female mosquitoes by their genotype.

summarize_females(out, spn_P)

Arguments

out

the output of sim_trajectory_R

spn_P

the places of the SPN, see details

Value

a 3 to 5 column dataframe for plotting with ggplot2

Details

The places (spn_P) object is generated from one of the following: spn_P_lifecycle_node or spn_P_lifecycle_network.

The return object depends on the data provided. If the simulation was only 1 node, then no node designation is returned. If only one repetition was performed, no rep designation is returned. Columns always returned include: time, genotype, and value.

For examples of using this function, this or any vignette which visualizes output: vignette("lifecycle-node", package = "MGDrivE2")