plotResourceLevel: Plot the proportion of the resource spectrum(s) compared to...

View source: R/plots.R

plotResourceLevelR Documentation

Plot the proportion of the resource spectrum(s) compared to their carrying capacity

Description

Plot the proportion of the resource spectrum(s) compared to their carrying capacity

Usage

plotResourceLevel(object, return_data = FALSE)

Arguments

object

An object of class MizerSim or MizerParams.

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

Value

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

See Also

plotting_functions

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

Examples


plotResourceLevel(NS_params)

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


sizespectrum/mizerExperimental documentation built on April 16, 2024, 8:39 a.m.