Skip to contents

Runs analyze_growth_temperature_sensitivity and plots the result. Sensitivity analysis requires a Bioenergetic object (not an fb4_result), because it re-runs the model across a grid of temperatures and p_values. Use plot(bio_obj, type = "sensitivity") as the primary interface; this function is the underlying implementation.

Usage

plot_sensitivity.fb4_result(
  bio_obj,
  temperatures = seq(4, 20, by = 2),
  p_values = seq(0.3, 1, by = 0.1),
  simulation_days = 365,
  color_scheme = "grayscale",
  add_annotations = TRUE,
  verbose = FALSE,
  ...
)

Arguments

bio_obj

Bioenergetic object with species parameters, temperature profile, diet, and simulation settings.

temperatures

Numeric vector of absolute temperatures (°C) to test. Default seq(4, 20, by = 2).

p_values

Numeric vector of p_values (proportion of Cmax) to evaluate. Must be in (0, 1]. Default seq(0.3, 1.0, by = 0.1).

simulation_days

Number of simulation days. Default 365.

color_scheme

Color scheme for the plot. Default "grayscale".

add_annotations

Add optimal temperature annotations. Default TRUE.

verbose

Show analysis progress. Default FALSE.

...

Additional arguments passed to plot_growth_temperature_sensitivity().

Value

NULL (creates plot)

Examples

if (FALSE) { # \dontrun{
# Primary interface (recommended):
plot(bio_obj, type = "sensitivity")

# Custom temperature range and p_values:
plot_sensitivity.fb4_result(
  bio_obj      = bio_chinook,
  temperatures = seq(4, 14, by = 2),
  p_values     = seq(0.3, 0.9, by = 0.1)
)
} # }