It reads in the output data from Ecopath with Ecosim (EwE) and making figures for each dataset. The timestep of the output data needs to be year. The rows of the data matrix represents years and the columns of the data represents functional groups. It creates figures and save the figures where EwE output csv files are located. The potential data include: biomass, catch, consumption biomass, feeding time, mortality, trophic level, and average weight (or production to comsumption) over years.

read_ewe_output(
  file_path,
  file_names,
  skip_nrows = 8,
  colname_1 = "Year",
  functional_groups,
  plot = FALSE,
  figure_titles = NULL,
  figure_colors = rainbow(12)
)

Arguments

file_path

a character string shows path to the working folder where EwE output csv files are located.

file_names

a vector of csv file names.

skip_nrows

integer: the number of lines of the data file to skip before reading data.

colname_1

column name of the first column. Default name is Year. The other option is FM (fishing mortality) for reading output from FMSY analysis.

functional_groups

a character string describes the column of the data matrix, which is functional groups in EwE case.

plot

logical: if TRUE then make figures for all output data files.

figure_titles

a character vector of strings describes the names of each figure.

figure_colors

a vector of colors.