plot.parameter_sensitivity: Plot Parameter Sensitivity Analysis

View source: R/adaptive_sampling.R

plot.parameter_sensitivityR Documentation

Plot Parameter Sensitivity Analysis

Description

The S3 plot method for parameter_sensitivity objects. It creates a visualization showing how the model's performance (minimum MAE) changes across the range of a single parameter. A threshold line is included to indicate the region of acceptable performance.

Usage

## S3 method for class 'parameter_sensitivity'
plot(
  x,
  width = 3.5,
  height = 3.5,
  save_plot = FALSE,
  output_dir,
  y_limit_factor = NULL,
  ...
)

Arguments

x

A parameter_sensitivity object, typically from parameter_sensitivity_analysis().

width

The numeric width of the output plot in inches.

height

The numeric height of the output plot in inches.

save_plot

A logical indicating whether to save the plot to a file.

output_dir

A character string specifying the directory for output files. Required if save_plot is TRUE.

y_limit_factor

A numeric factor to set the upper y-axis limit as a percentage above the threshold value (e.g., 1.10 for 10% above). If NULL, scaling is automatic.

...

Additional arguments (not currently used).

Value

A ggplot object representing the sensitivity plot.


topolow documentation built on Aug. 31, 2025, 1:07 a.m.