Description Usage Arguments Details Value See Also Examples
The generic function plotCurves
plots the growth curves and concentration changes of substances from simulation steps in an Eval
object.
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
)
|
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. |
The parameter retdata
can be used to access the data used for the returned plots to create own custom plots.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.