gearPlotHHN21.wrpdp: Function gearPlotHH.wrpdp plots warp length vs. Depth...

View source: R/gearPlotHHN21.wrpdp.R

gearPlotHHN21.wrpdpR Documentation

Function gearPlotHH.wrpdp plots warp length vs. Depth behaviour

Description

Produces a warplength vs. DoorSpread plot and a model with lm unction. Data are taken directly from DATRAS using function getDATRAS from library(icesDatras) It only produces plots for surveys with HH files uploaded in DATRAS Since sweeps length does not affect the warp that is decided by the chief scientist, there are no differences depending on sweeps

Usage

gearPlotHHN21.wrpdp(
  Survey = "SP-NORTH",
  years = 2021,
  quarter = 4,
  incl2 = TRUE,
  line = TRUE,
  c.inta = 0.95,
  col1 = "darkblue",
  col2 = "red",
  getICES = TRUE,
  pF = TRUE,
  ti = TRUE
)

Arguments

Survey:

either 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

years:

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

quarter:

the quarter of the survey to be ploted

line:

includes a regression line between Warp and depth and the formula of the linear regression. If F the line is omited

c.inta:

the confidence interval to be used in the predict.lm function

col1:

the color of the points, last year fill and previous years empty symbol

getICES:

Should the data be downloaded from DATRAS? If T, default, the data are taken from DATRAS through the icesDatras package.

pF:

takes out the points and leaves only the lines in the graphs

ti:

if T includes autmoatically the title, F leaves it blank an can be added later.

Details

Surveys available in DATRAS: i.e. SWC-IBTS, ROCKALL, NIGFS, IE-IGFS, SP-PORC, FR-CGFS, EVHOE, SP-NORTH, PT-IBTS and SP-ARSA

Value

Produces a graph Warp length vs. Depth for the years selected.

Examples

gearPlotHH.wrpdp("SWC-IBTS",c(2011:2016),1,c.inta=.95,col1="darkblue",pF=F)
gearPlotHH.wrpdp("SWC-IBTS",c(2013:2016),4)
gearPlotHH.wrpdp("ROCKALL",c(2013:2016),3)
gearPlotHH.wrpdp("NIGFS",c(2005:2016),1)
gearPlotHH.wrpdp("NIGFS",c(2006:2007,2009:2016),4)
gearPlotHH.wrpdp("IE-IGFS",c(2005:2016),4)
gearPlotHH.wrpdp("SP-PORC",c(2003:2016),3)
gearPlotHH.wrpdp("FR-CGFS",c(1998:2016),4)
gearPlotHH.wrpdp("EVHOE",c(1997:2016),4)
gearPlotHH.wrpdp("SP-NORTH",c(2014:2016),4)
gearPlotHH.wrpdp("SP-ARSA",c(2014:2016),1)
gearPlotHH.wrpdp("SP-ARSA",c(2014:2016),4)
gearPlotHH.wrpdp(damb,c(2014:2016),4,getICES=F,pF=F)

Franvgls/NeAtlIBTS documentation built on June 13, 2022, 6:26 p.m.