Plot scape
model predicted biomass, stock recruitment, and
landings.
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="gray",
plot=TRUE, ...)
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.
fitted scape
model.
what to plot: "d"
[efault], "s"
[tock
recruitment], or "l"
[andings].
vector of strings indicating which column names in
model$B
data frame to plot (all by default).
vector of numbers indicating which years to include (all by default).
whether to plot axis values.
denominator to shorten values on the y axis, or a vector with two elements referring to x and y axis.
legend location: "bottom"
, "left"
,
"top"
, "right"
, or ""
to suppress legend.
main title.
x-axis label.
y-axis label.
size of main title.
size of legend text.
size of axis labels.
size of tick labels.
orientation of tick labels: 0=parallel, 1=horizontal, 2=perpendicular, 3=vertical.
tick mark length.
number of tick marks.
line type of gridlines.
color of gridlines.
symbol for points.
size of points.
color of points.
line type of main lines.
line width of main lines.
color of main lines.
width of bars.
color of bars.
whether to draw plot.
passed to xyplot
and panel.superpose
.
The "d"
[efault] plot shows spawning biomass and vulnerable
biomass as lines, and landings as bars, on the same scale.
xyplot
, panel.barchart
,
and panel.superpose
are the underlying drawing
functions.
plotCA
, plotCL
, plotIndex
,
and plotLA
plot model fit and data.
plotB
, plotN
, and plotSel
plot
derived quantities.
scape-package
gives an overview of the package.
plotB(x.ling, series=c("VB.1","VB.2","Y"), div=1000, xlab="Year\n",
ylab="Biomass and landings (kt)")
plotB(x.ling, "s", div=1000, xlab="Biomass age 4+ (kt)",
ylab="Recruitment (million one-year-olds)")
Run the code above in your browser using DataLab