PIFSCstockassessments / ss3diags

R package with advanced diagnostics to evaluate a Stock Synthesis model. Diagnostics include residual analyses, hindcasting and cross-validation techniques, and retrospective analyses.
http://pifscstockassessments.github.io/ss3diags/
2 stars 4 forks source link

ajdusted ylim action in plotRunstest #60

Closed MOshima-PIFSC closed 2 years ago

MOshima-PIFSC commented 2 years ago

The miny and ylim arguments in SSplotRunstest and SSplotJABBAres were inconsistent in how they actually worked. I changed the SSplotRunstest function so you no longer depend on miny to adjust y-axis limits. I added in the ylim parameter to match how it is done in SSplotJABBAres. The default for ylim = "default" and will make the y-axis range (-1,1) but if user wants to specify the y-axis range they can easily adjust the ylim parameter (ie set ylim = (-.5,.5)). This improves the usability and consistency of the function and addresses issue #46.