diff --git a/DESCRIPTION b/DESCRIPTION index 28bfdb3..b2b5546 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -33,7 +33,8 @@ Imports: tidyr, magrittr, reshape2, - gtable + gtable, + ggpubr Remotes: Atlantis-Ecosystem-Model/atlantistools, r4atlantis/atlantisom diff --git a/R/make_atlantis_diagnostic_figures.R b/R/make_atlantis_diagnostic_figures.R index 3b392f1..2d2a637 100644 --- a/R/make_atlantis_diagnostic_figures.R +++ b/R/make_atlantis_diagnostic_figures.R @@ -459,8 +459,8 @@ print("length age") dplyr::mutate(decade = floor(time/10)*10) weight.lim = weight %>% - group_by(species,agecl)%>% - summarise(weight.min = min(meanWeight)/1000, + dplyr::group_by(species,agecl)%>% + dplyr::summarise(weight.min = min(meanWeight)/1000, weight.max = max(meanWeight)/1000) ages = sort(unique(weight.decade$agecl))