gearPlotHH.wgdo: gearPlotHH.wgdo Wing Spread vs. DoorSpread

View source: R/gearPlotHH.wgdo.R

gearPlotHH.wgdoR Documentation

gearPlotHH.wgdo Wing Spread vs. DoorSpread

Description

Plots Door Spread vs. Wing Spread behaviour and produces a model using lm. If there are DoorSpread and WingSpread values. If there are two different sweeps in the data, produces a model for each sweep length.

Usage

gearPlotHH.wgdo(
  Survey,
  years,
  quarter,
  c.int = 0.9,
  c.inta = 0.8,
  c.intb = 0.8,
  col1 = "darkblue",
  col2 = "steelblue2",
  getICES = T,
  pF = T,
  ti = T
)

Arguments

getICES:

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

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

datHH:

an HH data object with Survey, Year and Quarter columns, overrides Survey, Years, Quarters

c.int:

the confidenc interval to be used in the confint function

c.inta:

the confidence interval to be used in the confint function for all data if only one sweep length, and for the short sweeps in case there are two

c.intb:

the confidence interval to be used in the confint function for the long set of sweeps.

col1:

color for the symbols and lines for the whole set if only one set of sweeps are used, and for the data from the long set of sweeps.

col2:

color for the symbols and lines for the data from the short sweeps in case there are two.

pF:

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

ti:

if F title will not be included automatically and can be addedd 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 with DoorSpread vs. WingSpread, it also includes information on the ship, the time series used, the models and parameters estimated.

Examples

gearPlotHH.wgdo("SCOWCGFS",c(2014:2016),1,col1="darkblue",col2="steelblue3")
gearPlotHH.wgdo("SCOWCGFS",c(2013:2016),4)
gearPlotHH.wgdo("SCOROC",c(2013:2016),3)
gearPlotHH.wgdo("NIGFS",c(2015:2016),1)
gearPlotHH.wgdo("NIGFS",c(2006:2007,2009:2016),4)
gearPlotHH.wgdo("IE-IGFS",c(2011:2016),4)
gearPlotHH.wgdo("SP-PORC",c(2003:2015),3,c.int=.2)
gearPlotHH.wgdo("FR-CGFS",c(2016:2018),4)
gearPlotHH.wgdo("EVHOE",c(1997:2016),4)
gearPlotHH.wgdo("SP-NORTH",c(2014:2016),4,col1="darkblue")
gearPlotHH.wgdo("SP-ARSA",c(2014:2016),1,col1="darkblue",col2="steelblue2")
gearPlotHH.wgdo("SP-ARSA",c(2014:2016),4)
gearPlotHH.wgdo(damb,c(2014:2016),4,getICES=F,pF=F)

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