compplot: Generic comparison plot for simulation testing of Stochastic...

Description Usage Arguments Value Author(s) Examples

View source: R/StochasticSRA.R

Description

Plots simulation variables versus estimation variables for Stochastic SRA methods of conditioning operating models.

Usage

1
compplot(simy, samy, xlab = "", ylab = "", maxplot = 10, type = "l")

Arguments

simy

The simulated time series

samy

The matrix of estimated time series from of StochasticSRA() function.

xlab

The x axis label for the plot

ylab

The y axis label for the plot

maxplot

The total number of individual simulations to be plotted in the first plot

type

Should a line 'l' or points 'p' be plotted?

Value

A plot

Author(s)

T. Carruthers (Canadian DFO grant)

Examples

1
2
3
4
5
6
nyears<-100
nsims<-200
simy<-sin(seq(0,2,length.out=nyears))
samy<-array(rep(simy,each=nsims)*rnorm(nsims,1,0.2)*rnorm(nsims*nyears,1,0.1),c(nsims,nyears))
par(mfrow=c(1,2))
compplot(simy,samy,xlab="Year",ylab="Some time varying parameter")

DLMtool documentation built on March 13, 2020, 2:52 a.m.