@@ -239,8 +239,8 @@ plot_ssb_catch <- function(ssb_data, catch_data, v1="hcr", v2=NA, v3=NA, common_
239239 base_hcr <- d %> % filter(hcr == base_hcr )
240240
241241 plot <- ggplot(d ) +
242- geom_line(data = base_hcr , aes(x = time , y = median , ymin = lower , ymax = upper , group = .data [[v1 ]], color = .data [[v1 ]]), size = 0.85 )+
243- geom_line(aes(x = time , y = median , ymin = lower , ymax = upper , group = .data [[v1 ]], color = .data [[v1 ]]), size = 0.85 )+
242+ geom_line(data = base_hcr , aes(x = time , y = median , group = .data [[v1 ]], color = .data [[v1 ]]), size = 0.85 )+
243+ geom_line(aes(x = time , y = median , group = .data [[v1 ]], color = .data [[v1 ]]), size = 0.85 )+
244244 geom_line(data = common , aes(x = time , y = median ), size = 0.85 )+
245245 geom_vline(data = common , aes(xintercept = common ), linetype = " dashed" )+
246246 # geom_hline(yintercept=121.4611, linetype="dashed")+
@@ -577,7 +577,7 @@ plot_performance_metric_summary <- function(perf_data, v1="hcr", v2="om", is_rel
577577 metric_minmax = perf_data %> % group_by(name ) %> % summarise(min = min(lower ), max = max(upper ))
578578 axis_scalar <- c(0.9 , 1.1 )
579579
580- summary <- perf_data %> % filter(! is.infinite(median )) %> % summarise(median = mean(median ))
580+ summary <- perf_data %> % filter(! is.infinite(median ), hcr != " No Fishing " ) %> % summarise(median = mean(median ))
581581
582582 plot <- ggplot(perf_data )+
583583 geom_vline(data = summary , aes(xintercept = median ), color = " black" )+
@@ -620,10 +620,10 @@ plot_performance_metric_summary <- function(perf_data, v1="hcr", v2="om", is_rel
620620 }else {
621621 plot <- plot + ggh4x :: facetted_pos_scales(
622622 x = list (
623- scale_x_continuous(limits = c(0 , 1.5 )),
624- scale_x_continuous(limits = c(0.75 , 2.0 )),
623+ scale_x_continuous(limits = c(0 , 2 )),
624+ scale_x_continuous(limits = c(0 , 1.25 )),
625625 scale_x_continuous(limits = c(0 , 3.5 )),
626- scale_x_continuous(limits = c(0.75 , 1.5 )),
626+ scale_x_continuous(limits = c(0 , 2 )),
627627 scale_x_continuous(limits = c(0.75 , 2.5 )),
628628 scale_x_continuous(limits = c(0.5 , 1.25 ))
629629 )
0 commit comments