plot.bdmData | R Documentation |
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.
## S3 method for class 'bdmData'
plot(x, ...)
x |
an |
... |
additional arguments to the generic function |
# load Indian Ocean albacore data
data(albio)
# create bdmData object
dat <- bdmData(harvest = albio$catch, index = albio$cpue, time = rownames(albio))
# plot
plot(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.