plotTempEffectMetab: Plot total temperature effect on metabolism on each species...

plotTempEffectMetabR Documentation

Plot total temperature effect on metabolism on each species by size

Description

After running a projection, plot the temperature effect on metabolism for each species by size. The total temperature effect is averaged over the specified time range (a single value for the time range can be used to plot a single time step).

Plot total temperature effect using a therMizerSim object.

Usage

plotTempEffectMetab(object, ...)

## S4 method for signature 'therMizerSim'
plotTempEffectMetab(object,
  time_range = max(as.numeric(dimnames(object@n)$time)), print_it = TRUE,
  ...)

Arguments

object

An object of class therMizerSim.

...

Other arguments to pass to getFMort method

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

Value

A ggplot2 object

See Also

getTempEffect

Examples

## 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)
plotTempEffectMetab(sim)
plotTempEffectMetab(sim, time_range = 10:20)

## End(Not run)

pwoodworth-jefcoats/Size-Based-Modeling documentation built on Sept. 15, 2023, 8:13 a.m.