plotFeedingLevel | R Documentation |
After running a projection, plot the feeding level of each species by size. The feeding level is averaged over the specified time range (a single value for the time range can be used).
PLot the feeding level using a therMizerSim
object.
plotFeedingLevel(object, ...)
## S4 method for signature 'therMizerSim'
plotFeedingLevel(object,
time_range = max(as.numeric(dimnames(object@n)$time)), print_it = TRUE,
...)
object |
An object of class |
... |
Other arguments to pass to |
time_range |
The time range (either a vector of values, a vector of min and max time, or a single value) to average the abundances over. Default is the final time step. |
print_it |
Display the plot, or just return the ggplot2 object |
A ggplot2 object
getFeedingLevel
## Not run:
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
sim <- project_therMizer(params, effort=1, t_max=20, t_save = 2)
plotFeedingLevel(sim)
plotFeedingLevel(sim, time_range = 10:20)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.