plotCurves: Function for plotting the overall change as curves

Description Usage Arguments Details Value See Also Examples

Description

The generic function plotCurves plots the growth curves and concentration changes of substances from simulation steps in an Eval object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
plotCurves(
  object,
  medplot = object@mediac,
  retdata = F,
  remove = F,
  legend = F,
  graph = T
)

## S4 method for signature 'Eval'
plotCurves(
  object,
  medplot = object@mediac,
  retdata = F,
  remove = F,
  legend = F,
  graph = T
)

Arguments

object

An object of class Eval.

medplot

A character vector giving the name of substances which should be plotted.

retdata

A boolean variable indicating if the data used to generate the plots should be returned.

remove

A boolean variable indicating if substances, which don't change in their concentration should be removed from the plot.

legend

Boolean variable indicating if legend should be plotted

graph

True if graphic should be plotted.

Details

The parameter retdata can be used to access the data used for the returned plots to create own custom plots.

Value

Returns two graphs in one plot: the growth curves and the curves of concentration changes. Optional the data to generate the original plots can be returned.

See Also

Eval-class and Arena-class

Examples

1
2
3
4
5
6
7
8
data(Ec_core, envir = environment()) #get Escherichia coli core metabolic model
bac <- Bac(Ec_core,deathrate=0.05,
           minweight=0.05,growtype="exponential") #initialize a bacterium
arena <- Arena(n=20,m=20) #initialize the environment
arena <- addOrg(arena,bac,amount=10) #add 10 organisms
arena <- addSubs(arena,40) #add all possible substances
eval <- simEnv(arena,5)
plotCurves(eval)

BacArena documentation built on July 2, 2020, 3:16 a.m.