Skip to contents

Plot MOGA models vs objective values.

Usage

objectives_vs_non_dominated_models(
  darwin_data,
  data = darwin_data$non_dominated_models$final_front,
  interactive = TRUE,
  add_hull = FALSE,
  front_type = c("Intersection", "Global", "MOGA"),
  model_colors = c(Dominated = "#4575B4", `Non-dominated` = "#D73027", `Final Front` =
    "#A50026"),
  ...
)

Arguments

darwin_data

Object of class darwin_data.

data

Data to plot. Defaults to darwin_data$non_dominated_models$final_front. Additional filters can be applied; e.g. data = darwin_data$non_dominated_models$final_front %>% dplyr::filter(f1 < 9000)

interactive

Whether or not the plot should be an interactive plotly object. Defaults to TRUE.

add_hull

Adds a hull around final_front points in a three objective plot. Defaults to FALSE.

front_type

Which method of selecting final front models should be used in the final front layer. Must be one of "Intersection", "Global", or "MOGA". Defaults to "Intersection".

model_colors

Named character vector of hex color codes for model.

...

Additional arguments to be passed to plotting function.

Value

Object of class plotly if interactive, otherwise of class ggplot.