Skip to content

Commit

Permalink
Merge pull request #8 from FRAMverse/hotfixes
Browse files Browse the repository at this point in the history
Hotfixes
  • Loading branch information
Ty-WDFW authored Mar 7, 2024
2 parents 612db6d + 5891e21 commit f33340f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/compare_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ compare_inputs_chart <- function(.data){
#dplyr::filter(!is.na(.data$percent_diff)) |>
ggplot2::ggplot(ggplot2::aes(factor(.data$fishery_id), .data$time_step, fill = dplyr::if_else(.data$percent_diff > 0, 'pos', 'neg'), alpha=abs(.data$percent_diff))) +
ggplot2::geom_tile() +
ggplot2::geom_text(ggplot2::aes(label = paste0(scales::percent(.data$percent_diff), '\n', .data$reg_change ))) +
ggplot2::geom_text(ggplot2::aes(label = paste0(scales::percent(round(.data$percent_diff,3)), '\n', .data$reg_change ))) +
ggplot2::theme(legend.position = 'none') +
ggplot2::labs(
subtitle = 'FRAM input comparison heatmap',
Expand Down
2 changes: 1 addition & 1 deletion R/report_fishery_mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ coho_stock_mortality <- function(fram_db, run_id = NULL, stock_id = NULL, top_n
ggplot2::ggplot(ggplot2::aes(.data$total_mort, stats::reorder(.data$fishery_name, .data$total_mort))) +
ggplot2::geom_col() +
ggplot2::labs(
subtitle = glue::glue('Top motality for stock {stock_name} ({run_name})'),
subtitle = glue::glue('Top mortality for stock {stock_name} ({run_name})'),
x = 'Mortalities',
y = 'Fishery'
)
Expand Down

0 comments on commit f33340f

Please sign in to comment.