Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion R/jbplot_ensemble.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
#' it will be the directory where the model was run.
#' @param filenameprefix Additional text to append to PNG or PDF file names.
#' It will be separated from default name by an underscore.
#' @param single.plots if TRUE will plot subplots individually
#' @param par list of graphics parameter values passed to par() function
#' @param verbose Report progress to R GUI?
#' @param shadecol uncertainty shading of hcxval horizon
Expand All @@ -69,6 +70,7 @@
#' @author Mostly adopted from ss3diags::SSplotEnsemble
#' @export
#' @examples
#' \dontrun{
#' data(iccat)
#' bet = iccat$bet
#' # Fit Fox and Schaefer
Expand All @@ -85,6 +87,9 @@
#' jbplot_ensemble(prj)
#' # Zoom in
#' jbplot_ensemble(prj,xlim=c(2000,2027))
#' # Plot only biomass
#' jbplot_ensemble(list(fit1, fit2), subplots = 3, single.plots = TRUE)
#' }
jbplot_ensemble<- function(kb,
subplots=1:6,
joint=FALSE,
Expand Down Expand Up @@ -222,7 +227,7 @@ jbplot_ensemble<- function(kb,

if(!single.plots){
Par = list(mfrow=c(3,2),mai=c(0.45,0.49,0.1,.15),omi = c(0.15,0.15,0.1,0) + 0.1,mgp=c(2,0.5,0), tck = -0.02,cex=0.8)
if(as.png==TRUE){png(file = paste0(output.dir,"/",prefix,"_",jbs$assessment,".png"), width = 7, height = 8,
if(as.png==TRUE){png(file = paste0(plotdir,"/",filenameprefix,"_jabba_comparison.png"), width = 7, height = 8,
res = 200, units = "in")}
par(Par)
}
Expand Down
6 changes: 6 additions & 0 deletions man/jbplot_ensemble.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.