report.cpue: Report method for cpue objects

Description Usage Arguments Examples

View source: R/cpue-class.R

Description

Export a report of catch per unit effort (cpue) class.

Usage

1
2
3
4
## S3 method for class 'cpue'
report(x, format = "latex", tangle = FALSE, output = NULL,
  open = TRUE, daysToPlot = c(1, 8, 15, 22), textAxis2 = NULL,
  textAxis4 = NULL)

Arguments

x

Object of cpue class.

daysToPlot

If is a daily plot by default the x-axis show the first day of a week (1, 8, 15, 22) but could be change to show a specific day or to show the all days of the data with all. This is including in a vector form.

textAxis2

The text of the x axis.

textAxis4

The text of the y axis.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Read a example of a data base
fisheryData = system.file("extdata", "fisheryData.csv", package = "imarpe")

# Produce a object of cpue class
cpue  = getFishingData(file = fisheryData, type = "cpue", varType = "cpue", sp = "caballa", efforType = "capacidad_bodega")
class(cpue)

#Produce the report showing all days on the x-axis (by default)
report(cpue)

#Produce the report showing only the day 15 on the x-axis
report(cpue, daysToPlot = "15")

imarpe/imarpe documentation built on Aug. 8, 2020, 8:40 p.m.