plot_ts | R Documentation |
Exploratory plots of Catch, Abundance, F, Recruitment for all assessments for a particular species
plot_ts(
itis = NULL,
stock = NULL,
metric = "Catch",
facetplot = F,
printfig = T
)
itis |
Numeric. Species ITIS code |
stock |
Character. Full name of stock (only required if more than one stock exists for ITIS code) |
metric |
Character vector. Specifying which metric to plot (Catch, Abundance, Fmort, Recruitment) |
facetplot |
Boolean. How to plot results. Plot each assessment in its own facet (T) or pplot all assessments on a single plot (default = F) |
printfig |
Boolean. Print figure to figure window (Default = T) |
A list of two items is returned
plot |
ggplot object |
data |
dataframe used in the plotting |
The units of some of the metrics change over time. For example, catch for one assessment may be presented in metric tons
whereas other assessments may be in thousand metric tons. This is not resolved in the plotting. When this arises it is best
to use facet = T
since each facet uses its own yaxis scale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.