Skip to contents

plot_surface_comparison() draws compact base R diagnostic plots from a compare_popmaps_surfaces() result. These plots are intended to make surface support interpretable without requiring users to inspect the comparison list by hand.

Usage

plot_surface_comparison(
  comparison,
  type = c("score", "percent_from_best", "best_parameters"),
  col = NULL,
  main = NULL,
  ...
)

Arguments

comparison

A popmaps_surface_comparison object returned by compare_popmaps_surfaces().

type

Plot type. "score" plots the primary validation metric by surface. "percent_from_best" plots relative loss from the best surface. "best_parameters" plots the best parameter values selected for each surface.

col

Optional vector of plotting colors. Named vectors are matched to surface names; unnamed vectors are recycled in comparison order.

main

Optional plot title.

...

Additional arguments passed to base plotting functions.

Value

Invisibly returns comparison.