Plot the biomass of each species through time

Share:

Description

After running a projection, the biomass of each species can be plotted against time. The biomass is calculated within user defined size limits (see getBiomass). This plot is pretty easy to do by hand. It just gets the biomass using the getBiomass method and plots using the ggplot2 package. You can then fiddle about with colours and linetypes etc. Just look at the source code for details.

Arguments

object

An object of class MizerSim.

min_w

Minimum weight of species to be used in the calculation.

max_w

Maximum weight of species to be used in the calculation.

min_l

Minimum length of species to be used in the calculation.

max_l

Maximum length of species to be used in the calculation.

start_time

The first time step to be plotted. Default is the beginning of the time series.

end_time

The first time step to be plotted. Default is the end of the time series.

print_it

Display the plot, or just return the ggplot2 object. Default value is TRUE.

Value

A ggplot2 object

See Also

getBiomass

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(NS_species_params_gears)
data(inter)
params <- MizerParams(NS_species_params_gears, inter)
sim <- project(params, effort=1, t_max=20, t_save = 2)
plotBiomass(sim)
plotBiomass(sim, min_w = 10, max_w = 1000)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.