Learn R Programming

MLZ (version 0.1.5)

plot,MLZ_data-method: 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 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

Run this code
if (FALSE) {
data(Nephrops)
plot(Nephrops)
plot(Nephrops, type = "ML")
}

Run the code above in your browser using DataLab