plotResourceLevel | R Documentation |
Plot the proportion of the resource spectrum(s) compared to their carrying capacity
plotResourceLevel(object, return_data = FALSE)
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 |
A ggplot2 object, unless return_data = TRUE
, in which case a data
frame with the three variables 'w', 'value', 'Resource' is returned.
plotting_functions
Other plotting functions:
plotDeath()
,
plotEnergyBudget()
,
plotResourcePred()
,
plotYieldVsF()
,
plotYieldVsSize()
plotResourceLevel(NS_params)
# Returning the data frame
fr <- plotResourceLevel(NS_params, return_data = TRUE)
str(fr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.