generation.heatmap: Heatmap showing average number of generations in many...

Description Usage Arguments Details Value Examples

View source: R/PlotNetLogoData.R

Description

Each cell in the Pheno-Evo model carries a number indicating the number of generations elapsed between the founding ancestor cells and its birth. At a given timepoint, the average of the generation numbers of all cells in the population can serve as a rough indicator of the population's overall growth rate. [generation.heatmap()] shows three dimensions of data: two experimental parameters (for instance, toxin concentration and diffusion rate) as axes, and the population average generation number as color gradient from pale yellow to dark green. It is a snapshot of several experiments from a parameter sweep at a single timepoint.

Usage

1
generation.heatmap(ends.df, xvar, yvar)

Arguments

ends.df

Dataframe of endpoint data, generated by extract.endpoint(). Must contain a generation.mean column (use [summarize.endpoint()])

xvar

Experimental parameter for plotting on x-axis. Must be a column name of ends.df, with no quotation marks.

yvar

Experimental parameter for plotting on y-axis. Must be a column name of ends.df, with no quotation marks.

Details

As with other endpoint-summary plots, this function can be used with data from any timepoint, as long as the ends.df dataframe contains data from only one timepoint per run number. For a function to create a heatmap with any variable you wish (instead of generation number), see [phenoevo.heatmap()].

Value

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

Examples

1
2
data(PE.ends)
generation.heatmap(PE.ends, toxin.conc, env.noise)

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