Skip to content

Commit

Permalink
spell out reference and adjust rectangle colors for runstest
Browse files Browse the repository at this point in the history
  • Loading branch information
MOshima-PIFSC committed Mar 23, 2024
1 parent 98ea41e commit acbdbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions R/SSplotRetro.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ SSplotRetro <- function(summaryoutput,
pheight = 5.0,
punits = "in",
res = 300,
ptsize = 10,
ptsize = 12,
cex.main = 1,
plotdir = NULL,
filenameprefix = "",
Expand Down Expand Up @@ -296,7 +296,7 @@ SSplotRetro <- function(summaryoutput,

if (!is.expression(legendlabels[1]) &&
legendlabels[1] == "default") {
legendlabels <- c("Ref", paste(endyrvec[-1]))
legendlabels <- c("Reference", paste(endyrvec[-1]))
}
if (legendorder[1] == "default") legendorder <- 1:(nlines)

Expand Down
2 changes: 1 addition & 1 deletion R/SSplotRunstest.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ SSplotRunstest <- function(ss3rep,


lims <- runstest[["sig3lim"]]
cols <- c(rgb(1, 0, 0, 0.5), rgb(0, 1, 0, 0.5))[ifelse(runstest[["p.runs"]] < 0.05, 1, 2)]
cols <- c("#d95f02D9", "#1b9e77")[ifelse(runstest[["p.runs"]] < 0.05, 1, 2)]
rect(min(resid[["Yr"]] - 1), lims[1], max(resid[["Yr"]] + 1), lims[2], col = cols, border = cols) # only show runs if RMSE >= 0.1

abline(h = 0, lty = 2)
Expand Down

0 comments on commit acbdbf3

Please sign in to comment.