Learn R Programming

DLMtool (version 5.2)

plotStock: Plot the Stock object parameters

Description

A function that plots histograms of samples from the Stock object parameters, and time-series plots of nsamp samples of time-varying parameters. Used to visually examine the parameter values and ranges entered into the Stock object.

Usage

plotStock(x, nsamp = 3, nsim = 500, nyears = 50, proyears = 28,
  col = "darkgray", breaks = 10, lwd = 2, ask = FALSE, incVB = TRUE,
  ...)

Arguments

x

An object of class Stock (or of class OM)

nsamp

Number of random samples for time-series plots

nsim

Number of iterations for histograms. Ignored if x is class 'OM'

nyears

Number of historical years. Ignored if x is class 'OM'

proyears

Number of projection years. Ignored if x is class 'OM'

col

Color of histograms

breaks

Number of breaks for histograms

lwd

line width

ask

Ask before displaying next page?

incVB

Show the sampled von Bertalanffy growth curves on second page?

...

Optional additional arguments passed to plot