View source: R/atlantisfmsy_plots.R
atlantisfmsy_plot | R Documentation |
Use the Fmsy simulation to plot the catches of a given functional group as a function of the fishing mortality. On this figure, the Fmsy value is displayed as well as the current F value used in the calibrated model.
atlantisfmsy_plot( func_grp, folder_path, model_path, exe_name, fmax, compareFsq = F, compareYFsq = F, Fsq_dir = NULL, YFsq = NULL, shading = F, perc = F, addarrow = F, batch_file = NULL )
func_grp |
The code of the Atlantis functional group for which Fmsy will be estimated. |
folder_path |
The working directory: where the Fmsy simulations will be run and stored. |
model_path |
The directory of the calibrated model (containing all the
parameters files and one bach file. Forcing files can be stored in a direct
parent directory of model_path). WARNING: Only working if the forcing
folder is in the main model directory |
exe_name |
The name of the atlantis executable you used (ex: atlantismain, atlantisNew). |
fmax |
The maximal value of F the simulation is going to test in y-1.
WARNING: only work if |
compareFsq |
If TRUE compare Fmsy value with Fsq (status-quo) the fishing mortality applied in the calibrated model. A dashed line is drawn to mark the position of Fsq and it's value is displayed with a precision of two decimals. Default: FALSE. |
compareYFsq |
If TRUE in addition to compare Fmsy and Fsq, the yield at Fmsy
and Fsq is displayed with dashed line and the yield (here Landing) values is
diplayed with one decimal precision. Default: FALSE. WARNING:
If TRUE you need to provide the parameter |
Fsq_dir |
If |
YFsq |
If |
shading |
If TRUE shade the area gain (in green) or lost (in red) by moving
from Fsq to Fmsy. Only applied if |
perc |
If TRUE display the percentage of change between Fsq and Fmsy and/or yield at Fsq and Fmsy. Default: FALSE. |
addarrow |
If TRUE display arrow between Fsq and Fmsy and Yield at Fsq and
Fmsy. Default: FALSE. Only displayed if |
batch_file |
The name of the batch/shell file with extension you are using
to run your model. If not provided, the function will search for the unique
batch file in your |
gt
A TableGrod object ("gtable") plotting the yield (Landing) as a
function of the fishing mortality and plot the figure.
If the Fmsy simulation is not completed the function return an error message.
atlantis_paraselect
for parameters file selection,
atlantis_openfile
to open a parameters file and selecta parameter,
atlantis_fleetopen
to check if fleets are active,
atlantis_checkf
to check the formulation of the fishing pressure
used (i.e. F, effort, dynamics model...), atlantis_fdistri
to
extract the distribution of fishing pressure amongst fleets,
read.table
to open table stored in text files (.txt,
.csv ...), https://ggplot2.tidyverse.org/ for more information on the
package ggplot2
and
https://www.rdocumentation.org/packages/grid/versions/3.5.1 for additional
inforamtion on the package grid
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.