plotResourcePred: Plot the mortality applied on the resource spectrum(s)

View source: R/plots.R

plotResourcePredR Documentation

Plot the mortality applied on the resource spectrum(s)

Description

Plot the mortality applied on the resource spectrum(s)

Usage

plotResourcePred(object, proportion = TRUE, return_data = FALSE)

plotlyResourcePred(object, proportion = TRUE, ...)

Arguments

object

An object of class MizerSim or MizerParams.

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', 'Predator', 'Resource' is returned.

See Also

plotting_functions

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

Examples


plotResourcePred(NS_params)

# Returning the data frame
fr <- plotResourcePred(NS_params, return_data = TRUE)
str(fr)


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