Plot sex-ratio data and fits from Stock Synthesis output. Multi-figure
plots depend on make_multifig
. The confidence intervals around the
obserserved points are based on a Jeffreys interval calculated from
the adjusted input sample size (with a floor of 1).
SSplotSexRatio(replist, kind = "AGE", sexratio.option = 2, CI = 0.75,
plot = TRUE, print = FALSE, fleets = "all",
fleetnames = "default", yupper = 4, linescol = rgb(0.6, 0, 0.9,
0.7), lwd = 2, axis1 = NULL, axis2 = NULL, pwidth = 6.5,
pheight = 5, punits = "in", ptsize = 10, res = 300,
plotdir = "default", cex.main = 1, labels = c("Length (cm)",
"Age (yr)", "Sex ratio (females:males)", "Fraction female"),
maxrows = 6, maxcols = 6, rows = 1, cols = 1, fixdims = TRUE,
verbose = TRUE, mainTitle = FALSE, ...)
list created by SSoutput
indicator of type of plot can be "LEN", "SIZE", "AGE", "cond", "GSTAGE", "L[at]A", or "W[at]A".
code to choose among (1) female:male ratio or (2) fraction females out of the total
confidence interval for uncertainty
plot to active plot device?
print to PNG files?
optional vector to subset fleets for which plots will be made
optional vector of fleet names to put in the labels
upper limit on ymax (only applies for sexratio.option == 1)
Color for line showing expected value (default is purple)
line width
position of bottom axis values
position of left size axis values
default width of plots printed to files in units of
punits
. Default=7.
default height width of plots printed to files in units of
punits
. Default=7.
units for pwidth
and pheight
. Can be "px"
(pixels), "in" (inches), "cm" or "mm". Default="in".
point size for plotted text in plots printed to files (see help("png") in R for details). Default=12.
resolution of plots printed to files. Default=300
directory where PNG files will be written. by default it will be the directory where the model was run.
character expansion parameter for plot titles
vector of labels for plots (titles and axis labels)
maximum (or fixed) number or rows of panels in the plot
maximum (or fixed) number or columns of panels in the plot plots
number or rows to return to as default for next plots to come or for single plots
number or cols to return to as default for next plots to come or for single plots
fix the dimensions at maxrows by maxcols or resize based on number of years of data
return updates of function progress to the R GUI?
Logical indicating if a title for the plot should be produced
additional arguments that will be passed to the plotting.
Brown, L.; Cai, T. Tony; DasGupta, A. (2001). Interval Estimation for a Binomial Proportion. Statistical Science. 16(2): 101-133. http://www.jstor.org/stable/2676784.