cell.abundance.timecourse: Plot total cell population and toxin concentration over time

Description Usage Arguments Details Value Examples

View source: R/PlotNetLogoData.R

Description

Produces a simple line plot showing the total population of cells in red, and the average concentration of toxin per patch in black, over time.

Usage

1
cell.abundance.timecourse(NLdata, runnum)

Arguments

NLdata

The full dataframe containing data from all BehaviorSpace experiments at all timepoints, imported from NetLogo.

runnum

The run number of the experiment of interest.

Details

As this function is usually used for the purposes of displaying general population behavior, results may be abridged: if the input dataframe has more than 1,000 timepoints, only the final 500 timepoints are plotted. An attempt is made to scale the y-axis of the cell abundance plot so that it can be displayed on the same plot as the toxin plot.

Value

A ggplot object using geom_line. This can be modified in the typical ggplot way by adding layers, scales, etc.

Examples

1
2

jessicaaudreylee/PhenoEvoR documentation built on Sept. 7, 2020, 3:50 a.m.