report.fishery: Report method for fishery objects

Description Usage Arguments Examples

View source: R/fishery-class.R

Description

Export a report of landing or fishing effort.

Usage

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

Arguments

x

Object of fishery class.

type

To indicate if the report is going to be reproduce for individual variables (for landing or for effort) use type = single (by default). To reproduce a report using the joined information (landing and effort) use type = joined.

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 fishery class
landing  = getFishingData(file = fisheryData, type = "fisheryinfo", varType = "landing", sp = "caballa")
class(landing)

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

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

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