plot-MLZ_data-method: 'plot' method for S4 class 'MLZ_data'

plot,MLZ_data-methodR Documentation

plot method for S4 class MLZ_data

Description

Plots annual length frequencies from slot Len_matrix or Len_df. If there are data in both slots, Len_matrix is preferentially plotted.

Usage

## S4 method for signature 'MLZ_data'
plot(x, type = c("ML", "comp"),
  ggplot_layer = NULL)

Arguments

x

An object of class MLZ_data.

type

Character. "comp" produces a annual length frequencies from ggplot2, while "ML" plots mean lengths from slot MLZ_data@ML, as well as data from MLZ_data@CPUE and MLZ_data@Effort if available..

ggplot_layer

Optional layers to add to ggplot2 plot for type = "comp".

Examples

## Not run: 
data(Nephrops)
plot(Nephrops)
plot(Nephrops, type = "ML")

## End(Not run)

MLZ documentation built on March 29, 2022, 9:07 a.m.