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

View source: R/plotSurface.R

plotSurfaceR Documentation

Plot Performance Surfaces over a Discrete Mesh of Gap Structures

Description

Subroutine of multiSurface(). 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

plotSurface(
  d = 1:length(agObject),
  m = names(agObject[[1]][[1]][[1]]),
  metric,
  agObject,
  layer_type = "method",
  f = "median",
  highlight = NULL,
  highlight_color = "#FF0000",
  colors = c("#FF8633", "#FFAF33", "#FFD133", "#FFEC33", "#D7FF33", "#96FF33")
)

Arguments

d

numeric; A vector to indicate datasets of interest

m

character; A vector of interpolation methods of interest (maximum of 5)

metric

character; An element describing the performance metric of interest

agObject

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

layer_type

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

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.