Skip to contents

Plots proportions of stocks in the model by length or age

Usage

plot_stockcomp(fit, type = "line", by_age = FALSE, base_size = 8)

Arguments

fit

A gadget fit object. See g3_fit.

type

Character specifying the plot type. Options: "line" or "area". See examples.

by_age

Logical indicating whether age should be used on the x-axis instead of length

base_size

Base size parameter for ggplot. See ggtheme.

Value

A ggplot object or a list of such objects depending on the type argument.

Examples

data(fit)
plot_stockcomp(fit)

plot_stockcomp(fit, type = "area")

plot_stockcomp(fit, by_age = TRUE)