SplitLengthsESP: Function SplitLengths extracts from DATRAS the data to...

View source: R/SplitLengthsESP.R

SplitLengthsESPR Documentation

Function SplitLengths extracts from DATRAS the data to produce the IBTS maps with two length ranges for a fix set of species see file SpeciesCodes.csv

Description

Function SplitLengths extracts from DATRAS the data to produce the IBTS maps with two length ranges for a fix set of species see file SpeciesCodes.csv

Usage

SplitLengthsESP(
  datSurvey,
  dtyear,
  dtq,
  esp = "Merluccius merluccius",
  L_Split = 21,
  plot = TRUE,
  legpos = "bottomright",
  ti = TRUE,
  save.dat = FALSE,
  out.dat = FALSE,
  zeros = FALSE
)

Arguments

datSurvey:

The Survey to be downloaded from DATRAS (see details), or a data frame with the HH information with the DATRAS HH format and the years and quarter selected in years and quarter

dtyear:

year to be downloaded and used, had to be available in DATRAS. The time series will be ploted in grey dots, last year in yellow, it depends on the order of years, not the actual chronological year.

dtq:

the quarter of the survey to be downloaded

esp:

soecies to be included in the resulting map if plot=True, name as scientific upto date with WoRMS

plot:

if TRUE a map with the data selected in the species esp is presented

legpos:

by default "bottomright", but could be should be one of “bottomright”, “bottom”, “bottomleft”, “left”, “topleft”, “top”, “topright”, “right”, “center”

ti:

includes a title with the name of the species in the plot

save.dat:

by default set to FALSE, if TRUE saves the data in a file: IBTSdataSURVEYyrQX.csv

out.dat:

by default set to FALSE, if TRUE gives the data as output of the function

zeros:

if TRUE the map includes small points with the hauls with out catch of the species

Details

Surveys available in DATRAS recent years and not discontinued: EVHOE, FR-CGFS, FR-WCGFS, IE-IAMS, IE-IGFS, NIGFS, NS-IBTS, PT-IBTS, SCOROC, SCOWCGFS, SP-ARSA, SP-NORTH, SP-PORC

Value

during the calculations shows the types of data in the file "C", "P", "R", And the species of the set present in the Survey/year

Examples

SplitLengths("NS-IBTS",2023,3,esp="HKE",zeros=T)
SplitLengths("NS-IBTS",2023,3,esp="MEG",zeros=T)

Franvgls/NeAtlIBTS documentation built on April 26, 2024, 4:18 a.m.