Usage
ageKeyPlot(key, type = c("barplot", "area", "lines", "splines", "bubble"),
xlab = "Length", ylab = ifelse(type != "bubble", "Proportion", "Age"),
xlim = NULL, ylim = NULL, showLegend = FALSE, lbl.cex = 1.25,
leg.cex = 1, lwd = 2, span = 0.25, pal = paletteChoices(),
grid = TRUE, col = "gray80", buf = 0.45, add = FALSE, ...)
alkPlot(key, type = c("barplot", "area", "lines", "splines", "bubble"),
xlab = "Length", ylab = ifelse(type != "bubble", "Proportion", "Age"),
xlim = NULL, ylim = NULL, showLegend = FALSE, lbl.cex = 1.25,
leg.cex = 1, lwd = 2, span = 0.25, pal = paletteChoices(),
grid = TRUE, col = "gray80", buf = 0.45, add = FALSE, ...)
Arguments
key
A numeric matrix that contains the age-length key.
type
A string that indicates the type of plot to construct. See details.
xlab, ylab
A string that contains the label for the x- or y-axis.
xlim, ylim
A numeric of length 2 that provide the limits for the x-axis or y-axis.
showLegend
A logical that indicates whether a legend should be displayed (not implemented for type="bubble"
). See examples.
lbl.cex
A numeric character expansion value for labels inside the bars when type="barplot"
or on the lines when type="lines"
or type="splines"
. Only used if showLegend=FALSE
.
leg.cex
A numeric character expansion value for labels on the legend when showLegend=TRUE
.
lwd
A numeric that indicates the line width when type="lines"
or type="splines"
.
span
A numeric that indicates the span value to use in loess
when type="splines"
.
pal
A string that indicates the palette to generate colors for the bars, areas, lines, or spline lines. The name of a palette must be one of rich, cm, default, grey, gray, <
grid
A logical that indicates whether a grid should be placed under the bubbles when type="bubble"
or a character or appropriate vector that identifies a color for the grid. See examples.
col
A string that indicates the color of the bubbles when type="bubble"
.
buf
A single numeric that indicates the relative width of the bubbles when type="bubble"
. A value of 0.5 means that two full-width bubbles would touch each other either in the x- or y-direction (i.e., this would represent half of the minimum of
add
A logical that indicates whether the data should be added to an already existing plot. May be useful for visually comparing age-length keys. Only implemented when type="bubble"
.
...
Additional arguments to pass to plot
or barplot
.