multiSurface: Arrange Multiple Surface Plots on a Grid

View source: R/multiSurface.R

multiSurfaceR Documentation

Arrange Multiple Surface Plots on a Grid

Description

Function to generate a grid of surface plots (from the plotly package) to visualize changes in the performance metrics of interest with gap structure, across a number of datasets or methods. The structure of each surface plot is described in ?plotSurface.

  • If layer_type = "method", plots are arranged in a grid, by dataset.

  • If layer_type = "dataset", plots will be arranged in a grid, by method.

Usage

multiSurface(
  d = 1:length(agObject),
  m = names(agObject[[1]][[1]][[1]]),
  metric,
  agObject,
  layer_type = "method",
  f = "median",
  highlight = "HWI",
  highlight_color = "#FA4032",
  colors = c("#F9E0AA", "#F7C65B", "#FAAF08", "#FA812F", "#FA4032", "#F92111")
)

Arguments

d

numeric; A vector to indicate datasets of interest

m

character; A vector of interpolation methods of interest

metric

character; An element describing the performance metric of interest

agObject

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

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/sophTools documentation built on June 5, 2024, 8:50 a.m.