Skip to contents

Create a {ggplot2} plot showing how an outcome varies over the range of a parameter

Usage

show_parameter_range(
  x,
  parameter_x = x$parameterIds[1],
  parameter_line = x$parameterIds[2],
  parameter_rows = NULL,
  parameter_cols = NULL,
  outcome = x$outcomeId,
  ceteris = NULL
)

Arguments

x

The result of a scenario/model run

outcome

The outcome to show on the y axis

ceteris

A named list where each element's name is the identifier of another ('ceteris') parameter or intermediate value, and its value is the value to use.

parameter

The parameter to show on the x axis

Value

A {ggplot2} plot object