plotResults: Create plots from DM runs

Description Usage Arguments Value

Description

Create several plots based on the DM model runs. This calls the functions for various plots: plotPriors, plotPosteriors, plotAgeComp, plotCoefs

Usage

1
2
3
plotResults(dmObj, plotType = c("a.and.p.data", "priors", "SR", "recruits",
  "covariates", "harvest", "EscData", "EscAndAge", "escapement", "barPlot",
  "ageComp"), plotDest = "default", plotName = "tmp")

Arguments

dmObj

a saved DM object (list) from runModel() with the objects "input","dat","result", and "tDat"

plotType

The plots and order in which to make them

covariates
harvest
EscData
EscAndAge
escapement
SR
recruits

recruit residuals, recruits/spawners #and effective harvest on recruits

barPlot

a bar plot showing spawners and recruits broken down by pHOS and harvested

ageComp
priors

Priors used in the DM model

a.and.p.data

Raw data from the A and P input file.

plotDest

Plot destination. Can be "screen", "png", "default", "none". If "screen", separate graphics windows are opened. If "none", nothing is plotted but the figure captions are returned.

plotName

prefix to apply to filename for generated plots if plotDest="png"

Value

The plot is saved to a file or plotted to screen or default device depending on plotDest. A vector of plot captions is returned invisibly.


eeholmes/DM documentation built on May 26, 2019, 3:36 p.m.