Skip to content

Commit

Permalink
set plot to not limit fbar is fcrash is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 6, 2023
1 parent 437ff35 commit a76a06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ setMethod("plot", signature("FLBRP", "missing"),
rpf <- !all(is.na(rps))

# SUBSET df IF rpf
if(rpf && "crash" %in% dimnames(rps)$refpt)
if(rpf && "crash" %in% dimnames(rps)$refpt && !is.na(c(rps['crash', 'harvest'])))
df <- df[df$harvest <= c(rps['crash', 'harvest']),]

# NO economics
Expand Down

0 comments on commit a76a06a

Please sign in to comment.