foodweb.plot {streambugs}R Documentation

Plot the streambugs "foodweb" graph.

Description

Plot the "foodweb" graph depicting interactions between ODE variables in a streambugs model.

Usage

foodweb.plot(
  y.names,
  par,
  file = NA,
  cex = 1,
  font = 1,
  title = "",
  lwd = 1,
  bg = colors()[1],
  lcol = colors()[555],
  ncrit = 8,
  lcrit = 20,
  survivals = NA,
  observed = NA,
  texts = TRUE,
  pointcol = FALSE,
  ...
)

Arguments

y.names

same as y.names in run.streambugs

par

same as par in run.streambugs

file

optional name of a PDF file to plot to

cex

same as cex in par, consumed by here by multiple text generating functions

font

same as font in par, consumed here by text as a font type for taxa names

title

optional title for the plot

lwd

same as lwd in par, consumed here by lines as a line width for the "food web" edges

bg

same as bg in par

lcol

same as col in par, consumed here by lines as a line color for the "food web" edges

ncrit

number of inverts in one line at which they are shifted up and down, alternating

lcrit

number of letters/characters of state names which are plottet at level 2

survivals

vector with the entries "survived" or "extinct" for all state variables with names matching names of taxa state variables and "SusPOM"

observed

vector with the entries "never"/"notobserved", "observed","sometimes", "always", or NA/"NA" for all state variables, with names matching names of taxa state variables and "SusPOM"

texts

if to plot as "food web"nodes as texts with taxa names; otherwise, plot points

pointcol

if to color text or point nodes using Eawag coloring scheme (eawagfarben); otherwise plot all in the same color

...

additional arguments for the pdf graphics device, relevant only if file argument was given.

Examples

model <- streambugs.example.model.toy()
foodweb.plot(model$y.names, model$par, cex=1.1, title="complete foodweb", ncrit=8,
    lcrit=7, lwd=2, bg="white", lcol="blue", font=2)


[Package streambugs version 1.4 Index]