Plots simulation variables versus estimation variables for Stochastic SRA methods of conditioning operating models.
compplot(simy, samy, xlab = "", ylab = "", maxplot = 10, type = "l")
The simulated time series
The matrix of estimated time series from of StochasticSRA() function.
The x axis label for the plot
The y axis label for the plot
The total number of individual simulations to be plotted in the first plot
Should a line 'l' or points 'p' be plotted?
A plot
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab