Skip to contents

A shortcut function to quickly see a species' response to a range of temperatures.

Usage

T_plot(spec_params, temp = seq(-10, 45, 0.25))

Arguments

spec_params

a vector of named numbers. Must include:

  • T_opt the optimum temperature for macroalgae growth

  • T_min the minimum temperature for macroalgae growth (when T_c < T_min, growth = 0)

  • T_max the maximum temperature for macroalgae growth (when T_c > T_max, growth = 0)

temp

a vector of the range of temperatures to be tested (defaults to seq(-10, 45, 0.25))

Value

a ggplot object of growth response over the specified temperature range

See also

Examples

spec_params <- c(T_opt = 25, T_min = 5, T_max = 35)
T_plot(spec_params)
#> Error in T_plot(spec_params): could not find function "T_plot"