plotSpeciesComposition.bitacora: Plot for species composition of catch

Description Usage Arguments Value Examples

View source: R/bitacora-class.R

Description

This method takes a bitacora object and do a pie graph.

Usage

1
2
3
## S3 method for class 'bitacora'
plotSpeciesComposition(x, threshold = TRUE,
  minPercentage = 0.2, ...)

Arguments

x

Object of bitacora class.

threshold

Logical, by default is TRUE when the species composition on the catches will be graphic according to a thershold specified in minPercentage. When is FALSE, the pie graph uses all the species catches which are greather than zero.

minPercentage

Numeric value indicating the minimum percentage that catches must have to be graphic. By default is 0.2.

...

Extra arguments.

Value

A pie graph.

Examples

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

# Create a object of bitacora class
bitacoraObject = getBitacoraData(file = bitacoraData)
class(bitacoraObject)

# Composition of species by catches using a threshold = TRUE and minPercentage = 0.7
plotSpeciesComposition(x = bitacoraObject, minPercentage = 0.7)

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