View source: R/SSplotModelcomp.R
SSplotModelcomp | R Documentation |
Plots one-step ahead hindcasting cross-validations and computes MASE from prediction redisuals
SSplotModelcomp(
summaryoutput = aspm.sma,
plot = TRUE,
print = FALSE,
png = print,
pdf = FALSE,
models = "all",
subplots = c("SSB", "Bratio", "Fvalue", "Recruits", "Index", "RecDevs"),
brp = c("msy", "btargs"),
fmsy = TRUE,
ylabs = c("SSB (t)", expression(SSB/SSB[MSY]), "Fishing mortality F",
"Recruits ('000s)", "Index", "Recruitment Deviations"),
endyrvec = "default",
xmin = NULL,
indexselect = NULL,
indexUncertainty = TRUE,
col = NULL,
pch = NULL,
lty = 1,
lwd = 2,
tickEndYr = FALSE,
xlim = "default",
ylimAdj = 1.05,
xaxs = "i",
yaxs = "i",
xylabs = TRUE,
type = "l",
uncertainty = TRUE,
legend = TRUE,
legendlabels = "default",
legendloc = "topright",
legendorder = "default",
legendncol = 1,
legendcex = 1,
legendsp = 0.9,
legendindex = NULL,
pwidth = 6.5,
pheight = 5,
punits = "in",
res = 300,
ptsize = 10,
cex.main = 1,
plotdir = NULL,
filenameprefix = "",
par = list(mar = c(5, 4, 1, 1) + 0.1),
verbose = TRUE,
shadecol = NULL,
shadealpha = 0.3,
new = TRUE,
add = FALSE,
mcmcVec = FALSE,
indexQlabel = TRUE,
indexQdigits = 4
)
summaryoutput |
List created by r4ss::SSsummarize() |
plot |
plot to active plot device? |
print |
print to PNG files? |
pdf |
not tested for TRUE |
models |
Optional subset of the models described in r4ss function summaryoutput(). Either "all" or a vector of numbers indicating columns in summary tables. |
subplots |
option to "SSB","Bratio","Fvalue","Recruits","Index" |
brp |
option to set reference point c("msy","btargs") |
fmsy |
to specify Fvalue as F/Fmsy if so in starter file setting |
ylabs |
yaxis labels for quants final year of values to show for each model. By default it is set to the |
endyrvec |
ending year specified in each model. |
xmin |
= NULL optional number first year shown in plot (if available) |
indexselect |
= Vector of fleet numbers for each model for which to compare |
indexUncertainty |
Show fixed uncertainty intervals on index (not estimated) |
col |
Optional vector of colors to be used for lines. Input NULL |
pch |
Optional vector of plot character values |
lty |
Optional vector of line types |
lwd |
Optional vector of line widths |
tickEndYr |
TRUE/FALSE switch to turn on/off extra axis mark at final year in timeseries plots. |
ylimAdj |
Multiplier for ylim parameter. Allows additional white space |
xaxs |
Choice of xaxs parameter (see ?par for more info) |
yaxs |
Choice of yaxs parameter (see ?par for more info) |
type |
Type parameter passed to points (default 'o' overplots points on top of lines) |
legend |
Add a legend? |
legendlabels |
Optional vector of labels to include in legend. |
legendloc |
Location of legend. Either a string like "topleft" or a vector of two numeric values representing the fraction of the maximum in the x and y dimensions, respectively. See ?legend for more info on the string options. |
legendorder |
Optional vector of model numbers that can be used to have the legend display the model names in an order that is different than that which is represented in the summary input object. |
legendncol |
Number of columns for the legend. |
legendsp |
Space between legend labels |
legendindex |
Allows to add lengend for selected indices (plots) |
pwidth |
Width of plot |
pheight |
Height of plot |
punits |
Units for PNG file |
res |
Resolution for PNG file |
ptsize |
Point size for PNG file |
cex.main |
Character expansion for plot titles |
plotdir |
Directory where PNG or PDF files will be written. By default it will be the directory where the model was run. |
filenameprefix |
Additional text to append to PNG or PDF file names. It will be separated from default name by an underscore. |
par |
list of graphics parameter values passed to par() function |
verbose |
Report progress to R GUI? |
shadecol |
uncertainty shading of hcxval horizon |
shadealpha |
Transparency adjustment used to make default shadecol |
new |
Create new empty plot window |
add |
surpresses par() to create multiplot figs |
mcmcVec |
NOT TESTED Vector of TRUE/FALSE values (or single value) indicating |
indexQlabel |
Add catchability to legend in plot of index fits (TRUE/FALSE)? |
indexQdigits |
Number of significant digits for catchability in legend |
indexfleets |
CHECK IF NEEDED or how to adjust indexfleets |
legendcex=1 |
Allows to adjust legend cex |
Mostly adopted from r4ss::SSplotComparisons by Taylor et al
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.