Learn R Programming

BacArena (version 1.8.2)

plotShadowCost: Function to plot substance shadow costs for a specie

Description

The generic function plotShadowCost plots substances have the highest impact on further growth (shadow cost < 0)

Usage

plotShadowCost(
  object,
  spec_nr = 1,
  sub_nr = 10,
  cutoff = -1,
  noplot = FALSE,
  useNames = FALSE
)

# S4 method for Eval plotShadowCost( object, spec_nr = 1, sub_nr = 10, cutoff = -1, noplot = FALSE, useNames = FALSE )

Arguments

object

An object of class Eval.

spec_nr

Number of the specie

sub_nr

Maximal number of substances to be show

cutoff

Shadow costs should be smaller than cutoff

noplot

Do not plot

useNames

Use substance names instead of ids

Details

Returns ggplot objects