plot.bdmData: Plot index and harvest data

View source: R/plot.bdmData.R

plot.bdmDataR Documentation

Plot index and harvest data

Description

This function provides a plot method for the bdmData object class. It returns a ggplot object that can be assigned and manipulated using functions provided by ggplot2.

Usage

## S3 method for class 'bdmData'
plot(x, ...)

Arguments

x

an bdmData object class

...

additional arguments to the generic function

Examples

# load Indian Ocean albacore data
data(albio)

# create bdmData object
dat <- bdmData(harvest = albio$catch, index = albio$cpue, time = rownames(albio))

# plot
plot(dat)


cttedwards/bdm documentation built on Oct. 11, 2022, 7:52 p.m.