plotAgeLen | R Documentation |
Plot age-length key as a bubble plot.
plotAgeLen(m, inc = 0.3, zeroes = 4, fg = "red", bg = NA, ...)
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 |
zeroes |
A scalar giving the symbol to be used for plotting zeroes, default 4.
See the argument |
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 |
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.