plotAgeLen: Plot Age-Length Key

Description Usage Arguments Details Examples

View source: R/plotAgeLen.R

Description

Plot age-length key as a bubble plot.

Usage

1
plotAgeLen(m, inc = 0.3, zeroes = 4, fg = "red", bg = NA, ...)

Arguments

m

A numeric matrix of counts or relative frequencies with the two dimensions representing ages and lengths.

inc

A numeric scalar giving the radius (in inches) of the bubble representing the largest value in m, default 0.3.

zeroes

A scalar giving the symbol to be used for plotting zeroes, default 4. See the argument pch of the points function for possible values and their interpretation.

fg

A scalar giving the color the circles are to be drawn in.

bg

A scalar giving the color with which the circles are to be filled. The default, NA, leaves the symbols unfilled.

...

Additional arguments to plot.

Details

The matrix m can have ages in rows and lengths in columns or vice versa. In either case, unique row values are plotted along the x-axis, unique column values are plotted along the y-axis.

Values in the matrix m are represented as circles, with zero values represented by black dots.

Examples

1
2
3
4
mymat <- matrix(c(10, 1, 0, 0, 5, 0, 0, 3, 2, 0, 0, 1), nrow=3,
 dimnames=list(age=1:3, len=seq(25, 55, 10)))
plotAgeLen(mymat, inc=1)
plotAgeLen(t(mymat), xlab="Length", ylab="Age")

JVAdams/EchoNet2Fish documentation built on Feb. 15, 2021, 4:27 a.m.