catch_serie() graphically represents the distribution of catches by specie, country, ocean, period, time step and vessel type.

catch_serie(
  data_connection,
  time_period,
  specie,
  ocean,
  country,
  vessel_type,
  time_step = "year",
  path_file = NULL
)

Arguments

data_connection

list expected. Output of the function postgresql_dbconnection, which must be done before using the catch_serie function.

time_period

integer expected. Period identification in year.

specie

integer expected. Specie codes identification.

ocean

integer expected. Ocean codes identification.

country

integer expected. Country codes identification.

vessel_type

integer expected. Vessel type codes identification.

time_step

character expected. Kind of display you want in the graphic output. You can choose between "month" and "year".

path_file

character expected. NULL by default. Path to save the final graphic as a png.

Value

The function return ggplot R object.