# NOT RUN {
# }
# NOT RUN {
######################################
#DO NOT RUN
library(r4ss)
update_r4ss_files()
# ** CHANGE TO THE BASE DIRECTORY
directory <- "C:\NOAA2011\Dover\Models\base_20110701"
base <- SS_output(dir=directory,covar=F,verbose=F)
#show the plot in R
TSCplot(base)
TSCplot(base,yrs=2000:2011,pchSpace = 1)
#Create the plot as a PNG file
TSCplot(base,makePNG="C:\NOAA2012\Assessments\TSCdover.png")
#Create the plot as a PDF file
TSCplot(base,makePDF="C:\NOAA2012\Assessment\TSCdover.pdf")
# ** Hake model with MCMC results
SSdir <- "C:/NOAA2012/Hake/Models"
base <- SS_output(dir=paste(SSdir,"81_base_MCMC",sep="/"),covar=F)
tmp <- SSgetMCMC(dir=paste(SSdir,"81_base_MCMC",sep="/"),writecsv=F)
base$mcmc <- data.frame(tmp$model1)
TSCplot(base,ylimDepl = c(0,1.25),pchSpace=1,MCMC=T)
###############################################
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab