'This script aims to visualise length distribtuion by species, year and ocean. It also gives for each species outliers lengths'

size_distribution_and_outliers_control(
  data_connection,
  start_year,
  end_year,
  start_year_stat,
  end_year_stat,
  start_year_catch_vs_sample,
  end_year_catch_vs_sample,
  program,
  ocean,
  country_code,
  type,
  path_file = NULL
)

Arguments

data_connection

list expected. Either output of the function postgresql_dbconnection, which must be done before using the size_distribution_and_outliers_control

start_year

integer expected. Starting year for the samples to control.

end_year

integer expected. Ending year for the samples to control.

start_year_stat

integer expected. Starting year to calculate the mean median and quantiles.

end_year_stat

integer expected. Ending year to calculate the mean median and quantiles.

start_year_catch_vs_sample

integer expected. Starting year to compare sample to catch size distribution.

end_year_catch_vs_sample

integer expected. Ending year to compare sample to catch size distribution.

program

character expected. Programs to be controlled. Example of the format for a program topiaid: "fr.ird.referential.ps.common.Program#1239832686262#0.31033946454061234"

ocean

character expected. Ocean to be controlled. Examples: 'Indian', 'Atlantic'...etc.

country_code

character expected. Countries on wich control will be made. Examples: 'FRA', 'MUS'...etc.

type

character expected. type of graph you want: count or density.

path_file

character expected. Path to save the final xlsx.

Value

The function return histograms and xlsx tables.