# NOT RUN {
d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
bgm_as_df <- convert_bgm(file.path(d, "VMPA_setas.bgm"))
# Spatial distribution in Atlantis is based on adu- and juv stanzas.
# Therefore, we need to aggregate the age-based biomass to
# stanzas with \code{\link{combine_ages}}.
bio_spatial <- combine_ages(ref_bio_sp, grp_col = "species", agemat = ref_agemat)
# }
# NOT RUN {
# Apply \code{\link{plot_spatial_box}}
grobs <- plot_spatial_box(bio_spatial, bgm_as_df, timesteps = 3)
gridExtra::grid.arrange(grobs[[1]])
gridExtra::grid.arrange(grobs[[9]])
# use names() to select specific plots
names(grobs)
# }
# NOT RUN {
# Plot specific species
grobs <- plot_spatial_box(bio_spatial, bgm_as_df,
select_species = "Shallow piscivorous fish", timesteps = 3)
gridExtra::grid.arrange(grobs[[1]])
# }
Run the code above in your browser using DataLab