Learn R Programming

streambugs (version 1.4)

plot.streambugs: Plot the results of streambugs ODE run

Description

Plot time series of all streambugs ODE state variables, for each reach, habitat and group, resulting from the run.streambugs function call.

Usage

# S3 method for streambugs
plot(x, y, inp = NA, ...)

Arguments

x

matrix with results derived by run.streambugs

y

same as par in run.streambugs

inp

same as inp in run.streambugs

...

additional argument for the plot function call

Examples

Run this code
m <- streambugs.example.model.toy()
r <- run.streambugs(y.names=m$y.names, times=m$times,  par=m$par, inp=m$inp, C=TRUE)
plot(x=r$res, y=m$par, inp=m$inp)

Run the code above in your browser using DataLab