residplot: Plot Catch-at-Age Log Residuals

Description Usage Arguments Value Author(s) See Also Examples

View source: R/residplot.R

Description

Plot log-transformed residuals from a model fit to catch-at-age data. The default is to draw positive residuals as red bubbles and negative residuals as hollow bubbles.

Usage

1
2
3
4
residplot(residuals, xpos, ypos, maxsize=0.2, poscol=2, linecol=1,
          lwd=1, n=50, maxn, negcol, txt=FALSE, csi=0.1, xlab="",
          ylab="", axes=TRUE, arg=TRUE, argcol=20, arglty=2,
          cn=c("x","y","z"), append=FALSE)

Arguments

residuals

not documented.

xpos

not documented.

ypos

not documented.

maxsize

not documented.

poscol

not documented.

linecol

not documented.

lwd

not documented.

n

not documented.

maxn

not documented.

negcol

not documented.

txt

not documented.

csi

not documented.

xlab

not documented.

ylab

not documented.

axes

not documented.

arg

not documented.

argcol

not documented.

arglty

not documented.

cn

not documented.

append

not documented.

Value

NULL, but a plot is drawn.

Author(s)

Hoskuldur Bjornsson.

See Also

plot, polygon, and lines are used to generate the plot.

Examples

1
2
3
4
catage$CalcCno <- round(catage$ObsCno*exp(rnorm(nrow(catage),s=0.2)), 1)
catage$CatchDiff <- log(catage$ObsCno) - log(catage$CalcCno)

residplot(catage, cn=c("year","age","CatchDiff"), maxn=1)

hafroAssmt documentation built on May 2, 2019, 5:47 p.m.