plotB {scape}R Documentation

Plot Biomass, Recruitment, and Landings

Description

Plot scape model predicted biomass, stock recruitment, and landings.

Usage

plotB(model, what="d", series=NULL, years=NULL, axes=TRUE, div=1,
      legend="bottom", main="", xlab="", ylab="", cex.main=1.2,
      cex.legend=1, cex.lab=1, cex.axis=0.8, las=1,
      tck=c(1,what=="d")/2, tick.number=5, lty.grid=3, col.grid="white",
      pch=16, cex.points=0.8, col.points="black", lty.lines=1:3,
      lwd.lines=2, col.lines="black", ratio.bars=3, col.bars="grey",
      plot=TRUE, ...)

Arguments

model fitted scape model.
what what should be plotted: "d"[efault], "s"[tock recruitment], or "l"[andings].
series vector of strings indicating which column names in model$B data frame should be plotted (all by default).
years vector of numbers indicating which years should be included (all by default).
axes whether axis values should be plotted.
div denominator to shorten values on the y axis, or a vector with two elements referring to x and y axis.
legend legend location: "bottom", "left", "top", "right", or "" to suppress legend.
main main title.
xlab x-axis label.
ylab y-axis label.
cex.main size of main title.
cex.legend size of legend text.
cex.lab size of axis labels.
cex.axis size of tick labels.
las orientation of tick labels: 0=parallel, 1=horizontal, 2=perpendicular, 3=vertical.
tck tick mark length.
tick.number number of tick marks.
lty.grid line type of gridlines.
col.grid colour of gridlines.
pch symbol for points.
cex.points size of points.
col.points colour of points.
lty.lines line type of main lines, possibly a vector.
lwd.lines line width of main lines, possibly a vector.
col.lines colour of main lines, possibly a vector.
ratio.bars width of bars.
col.bars colour of bars.
plot whether to draw plot.
... passed to xyplot and panel.superpose.

Details

The "d"[efault] plot shows spawning biomass and vulnerable biomass as lines, and landings as bars, on the same scale.

Value

When plot=TRUE, a trellis plot is drawn and a data frame is returned, containing the data used for plotting. When plot=FALSE, a trellis object is returned.

Note

This function tries to draw the plot on a trellis device with a white background.

The Args function from the gdata package is recommended for reviewing the arguments, instead of args.

Author(s)

Arni Magnusson arnima@u.washington.edu.

See Also

Lattice, xyplot, panel.barchart, panel.superpose.

scape-package gives an overview of the package.

Examples

plotB(x.ling, series=c("VB.1","VB.2","Y"), div=1000, xlab="Year\n",
      ylab="Biomass and landings (1000 t)")

plotB(x.ling, "s", div=1000, xlab="Biomass age 4+ (1000 t)",
      ylab="Recruitment (million one-year-olds)")

[Package scape version 1.0-8 Index]