Create a Sensitivity Analysis heatmap plot
twsa_heatmap_plot.RdGenerates a heatmap for Tornado-Waterfall Sensitivity Analysis (TWSA) results, visualizing changes in outcomes across a 2D parameter space. The fill colour represents the specified variable, and labels are added for each grid cell.
Arguments
- data
A data frame containing TWSA results, with columns
x_scale,y_scale, and the variable specified byfill_var.- fill_var
A string giving the name of the column in
datato use for the fill colour.- x_labels
A character vector of labels to display along the x-axis.
- y_labels
A character vector of labels to display along the y-axis.
- x_title
A string specifying the x-axis title.
- y_title
A string specifying the y-axis title.