summarize_males {MGDrivE2}R Documentation

Summarize Adult Males (One Node or Metapopulation Network)

Description

For MGDrivE2 simulations of mosquito lifecycle dynamics or human infection dynamics, in a node or metapopulation network, this function summarizes population trajectories of adult male mosquitoes by their genotype.

Usage

summarize_males(out)

Arguments

out

the output of sim_trajectory_R

Details

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

Value

a 3 to 5 column dataframe for plotting with ggplot2


[Package MGDrivE2 version 2.1.0 Index]