plot.lago_budget: Plot a budget-constrained LAGO result

View source: R/lago_budget.R

plot.lago_budgetR Documentation

Plot a budget-constrained LAGO result

Description

Draws the cost/outcome frontier the search traced out (estimated outcome against recommended cost across the swept goals), with a vertical line at the budget and the chosen recommendation highlighted.

Usage

## S3 method for class 'lago_budget'
plot(x, ...)

Arguments

x

A "lago_budget" object from lago_budget().

...

Ignored.

Value

A ggplot2 object, or NULL invisibly when there is nothing reachable to plot.

Examples


b <- lago_budget(
  data = mtcars, outcome_name = "mpg", outcome_type = "continuous",
  glm_family = "gaussian", link = "identity",
  intervention_components = c("gear", "qsec"),
  intervention_lower_bounds = c(0, 0),
  intervention_upper_bounds = c(10, 350),
  cost_list_of_vectors = list(c(0, 4), c(4, 6)),
  outcome_goal_intention = "maximize", budget = 100
)
plot(b)



LAGOtrials documentation built on Dec. 4, 2026, 5:10 p.m.