plotSel {scape} | R Documentation |
Plot Selectivity and Maturity
Description
Plot scape
model predicted selectivity and observed maturity.
Usage
plotSel(model, together=FALSE, series=NULL, sex=NULL, axes=TRUE,
legend="bottom", main="", xlab="", ylab="", cex.main=1.2,
cex.legend=1, cex.lab=1, cex.axis=0.8, cex.strip=0.8,
col.strip="gray95", strip=strip.custom(bg=col.strip), las=1,
tck=0, tick.number=5, lty.grid=3, col.grid="gray", pch="m",
cex.points=1, col.points="black", lty.lines=1, lwd.lines=4,
col.lines=c("red","blue"), plot=TRUE, ...)
Arguments
model |
fitted |
together |
whether to plot gears in one panel. |
series |
vector of strings indicating which gears or surveys to plot (all by default). |
sex |
string indicating which sex to plot (both by default). |
axes |
whether to plot axis values. |
legend |
legend location: |
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. |
cex.strip |
size of strip labels. |
strip |
logical flag (whether to plot strip labels), or a
function passed to |
col.strip |
color of strip 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 |
color of gridlines. |
pch |
symbol for points. |
cex.points |
size of points. |
col.points |
color of points. |
lty.lines |
line type of main lines. |
lwd.lines |
line width of main lines. |
col.lines |
color of main lines. |
plot |
whether to draw plot. |
... |
passed to |
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
The Args
function from the gdata package is recommended
for reviewing the arguments, instead of args
.
See Also
xyplot
, panel.points
,
panel.lines
, 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.
Examples
plotSel(x.ling, xlab="Age", ylab="Selectivity and maturity")
plotSel(x.cod, together=TRUE, xlab="Age\n", ylab="Selectivity",
pch=NA, col.lines=c("coral","navyblue"), strip=FALSE)