plotSurface2: Plot Performance Surfaces over a Discrete Mesh of Gap...

View source: R/plotSurface2.R

plotSurface2R Documentation

Plot Performance Surfaces over a Discrete Mesh of Gap Structures

Description

Function to generate surface plots (using the plotly package) to visualize changes in the performance metrics of interest as gap structure changes.

  • The x-axis represents p, the proportion of missing data.

  • The y-axis represents g, the gap width.

  • The z-axis represents f(p,g), the value of the performance metric of interest, according to some statistic.

Usage

plotSurface2(
  agObject,
  m = names(agObject[[1]][[1]][[1]]),
  d = names(agObject),
  toggle = "dataset",
  grid = FALSE,
  legend = TRUE,
  metric = "MSE",
  f = "median",
  highlight = NULL,
  highlight_color = "#FF0000",
  colors = c("#FF8633", "#FFAF33", "#FFD133", "#FFEC33", "#D7FF33", "#96FF33")
)

Arguments

agObject

aggregate_pf; An object containing the aggregated performance metrics (result of aggregate_pf())

m

character; A vector of interpolation methods of interest

d

character; A vector to indicate datasets of interest

toggle

character; How to group the surfaces (either by "dataset" or "method")

metric

character; An element describing the performance metric of interest

f

character; The statistic of interest defining the surface f(p,g). Possible choices are listed in ?aggregate_pf.

highlight

character/numeric; A single method (if layer_type = "method") or dataset (if layer_type = "dataset") to highlight.

highlight_color

character; An HTML color of format "#xxxxxx" to apply to highlight

colors

character; A vector of the desired color palette, with entries in HTML format ("#xxxxxx")


castels/interpTools documentation built on June 7, 2024, 4:20 p.m.