View source: R/SSplotNumbers.R
SSplotNumbers | R Documentation |
Plot numbers-at-age related data and fits from Stock Synthesis output. Plots include bubble plots, mean age, equilibrium age composition, sex-ratio, and ageing imprecision patterns.
SSplotNumbers(
replist,
subplots = c(1:10),
plot = TRUE,
print = FALSE,
numbers.unit = 1000,
areas = "all",
areanames = "default",
areacols = NULL,
pntscalar = 2.6,
bub.bg = gray(0.5, alpha = 0.5),
bublegend = TRUE,
period = c("B", "M"),
meanlines = TRUE,
add = FALSE,
labels = c("Year", "Age", "True age (yr)", "SD of observed age (yr)",
"Mean observed age (yr)", "Mean age (yr)", "mean age in the population",
"Ageing imprecision", "Numbers at age at equilibrium",
"Equilibrium age distribution", "Fraction female in numbers at age", "Length",
"Mean length (cm)", "mean length (cm) in the population", "expected numbers at age",
"Beginning of year", "Middle of year", "expected numbers at length",
"Fraction female in numbers at length"),
pwidth = 6.5,
pheight = 6.5,
punits = "in",
res = 300,
ptsize = 10,
cex.main = 1,
plotdir = "default",
mainTitle = FALSE,
verbose = TRUE
)
replist |
A list object created by |
subplots |
vector controlling which subplots to create Numbering of subplots is as follows,
|
plot |
Plot to active plot device? |
print |
Print to PNG files? |
numbers.unit |
Units for numbers. Default (based on typical Stock Synthesis setup) is thousands (numbers.unit=1000). |
areas |
optional subset of areas to plot for spatial models |
areanames |
names for areas. Default is to use Area1, Area2,... |
areacols |
Optional vector of colors for each area if model has multiple areas. NULL value will be replaced by a default set of areas. |
pntscalar |
maximum bubble size for bubble plots; each plot scaled independently based on this maximum size and the values plotted. Often some plots look better with one value and others with a larger or smaller value. Default=2.6 |
bub.bg |
background color for bubbles (no control over black border at this time) |
bublegend |
Add legend with example bubble sizes? |
period |
indicator of whether to make plots using numbers at age just from the beginning ("B") or middle of the year ("M") (new option starting with SSv3.11) |
meanlines |
add lines for mean age or length on top of bubble plots |
add |
add to existing plot? (not yet implemented) |
labels |
Vector of labels for plots (titles and axis labels). |
pwidth |
Default width of plots printed to files in units of
|
pheight |
Height of plots printed to png files in units of |
punits |
Units for |
res |
Resolution of plots printed to files.
The default is |
ptsize |
Point size for plotted text in plots printed to files (see
|
cex.main |
Character expansion for plot titles.
The default is |
plotdir |
Directory where PNG files will be written. |
mainTitle |
Logical indicating if a title should be included at the top (not yet implemented for all plots). |
verbose |
A logical value specifying if output should be printed to the screen. |
Ian Stewart, Ian Taylor
SS_output()
, SS_plots()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.