plotDeath: Plot the sources of external, predation and fishing mortality...

View source: R/plots.R

plotDeathR Documentation

Plot the sources of external, predation and fishing mortality per species and size

Description

Plot the sources of external, predation and fishing mortality per species and size

Usage

plotDeath(
  object,
  species = NULL,
  proportion = TRUE,
  return_data = FALSE,
  xtrans = c("log10", "identity")
)

plotlyDeath(object, species = NULL, proportion = TRUE, ...)

Arguments

object

An object of class MizerSim or MizerParams.

species

The name of the predator species for which to plot the mortality.

proportion

A boolean value that determines whether values should be displayed as proportions from 0 to 1 or with their actual values. Default is TRUE.

return_data

A boolean value that determines whether the formatted data used for the plot is returned instead of the plot itself. Default value is FALSE

...

Other arguments (currently unused)

Value

A ggplot2 object, unless return_data = TRUE, in which case a data frame with the four variables 'w', 'value', 'Cause', 'Species' is returned.

See Also

plotting_functions

Other plotting functions: plotEnergyBudget(), plotResourceLevel(), plotResourcePred(), plotYieldVsF(), plotYieldVsSize()

Examples


plotDeath(NS_params, species = "Cod")

# Returning the data frame
fr <- plotDeath(NS_params, species = "Cod", return_data = TRUE)
str(fr)


sizespectrum/mizerExperimental documentation built on Oct. 20, 2024, 4:09 a.m.