Skip to content

Commit

Permalink
Merge pull request #9 from NOAA-EDAB/dev
Browse files Browse the repository at this point in the history
minor edits
  • Loading branch information
andybeet authored Aug 20, 2024
2 parents c6fed1c + 2b94e65 commit c66164a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
13 changes: 6 additions & 7 deletions R/compare_spatial_vars.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#' @param ref.years numeric vector with first and last year (years from start) for comparison period
#' @param plot logical. do you want to generate a plot
#'
#' @inheritParams make_atlantis_diagnostic_figures
#'
#' @importFrom magrittr "%>%"
#'
Expand Down Expand Up @@ -195,10 +194,10 @@ compare_spatial_vars = function(param.dir,

#species ref box
ref.data.box =boxes %>%
left_join(filter(ref.data,species == spp.names[s]))
dplyr::left_join(filter(ref.data,species == spp.names[s]))

init.data.box = boxes %>%
left_join(filter(init.data,species == spp.names[s]))
dplyr::left_join(filter(init.data,species == spp.names[s]))

plot.data.ls = list()
for(r in 1:length(run.names)){
Expand All @@ -223,7 +222,7 @@ compare_spatial_vars = function(param.dir,
dplyr::mutate(polygon = as.factor(polygon))

plot.data.ls[[r]] = boxes %>%
left_join(plot.data.spp, by = 'polygon')
dplyr::left_join(plot.data.spp, by = 'polygon')

}
plot.data = dplyr::bind_rows(plot.data.ls)
Expand Down Expand Up @@ -294,10 +293,10 @@ compare_spatial_vars = function(param.dir,

#species ref box
ref.data.box =boxes %>%
left_join(filter(ref.data,species == fleet.combs$species[sf] & fleet == fleet.combs$fleet[sf]))
dplyr::left_join(filter(ref.data,species == fleet.combs$species[sf] & fleet == fleet.combs$fleet[sf]))

init.data.box = boxes %>%
left_join(filter(init.data,species == fleet.combs$species[sf]))
dplyr::left_join(filter(init.data,species == fleet.combs$species[sf]))

plot.data.ls = list()
for(r in 1:length(run.names)){
Expand Down Expand Up @@ -329,7 +328,7 @@ compare_spatial_vars = function(param.dir,
}

plot.data.ls[[r]] = boxes %>%
left_join(plot.data.spp, by = 'polygon')
dplyr::left_join(plot.data.spp, by = 'polygon')

}
plot.data = dplyr::bind_rows(plot.data.ls)
Expand Down
1 change: 1 addition & 0 deletions R/process_atl_output.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#' @param system String. "Windows" or "Linux"
#' @param process.all Boolean. Global option to process all components
#' @param plot.spatial.overlap Boolean
#' @param plot.catch.fleet Boolean
#'
#' @inheritParams make_atlantis_diagnostic_figures
#'
Expand Down
2 changes: 2 additions & 0 deletions man/process_atl_output.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c66164a

Please sign in to comment.