plotCS_un: Plot Uncollapsed Cross-sections by 'Gap Width' or 'Proportion...

View source: R/plotCS_un.R

plotCS_unR Documentation

Plot Uncollapsed Cross-sections by 'Gap Width' or 'Proportion Missing'

Description

Function to generate uncollapsed cross-section plots to visualize changes in the performance metrics of interest as the proportion of missing data and gap width increase. Instead of three axes, as in the surface plots, either p or g can be broken down such that changes in performance are depicted with respect to one variable, across each value of the other. The variable to form the x-axis is specified in cross_section. Plots are arranged vertically, where each represents performance plotted against each fixed value in the variable not specified in cross_section. The middle line is the median value, the upper ribbon boundary is the 97.5th quantile value, and the lower ribbon boundary is the 2.5th quantile value.

Usage

plotCS_un(
  agEval,
  cross_section = "p",
  crit,
  d = 1:length(agEval),
  m = names(agEval[[1]][[1]][[1]]),
  f = "median",
  layer_type = "method",
  highlight = "HWI",
  highlight_color = "#FA4032",
  colors = c("#FF8633", "#FFAF33", "#FFD133", "#FFEC33", "#D7FF33", "#96FF33")
)

Arguments

agEval

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

cross_section

character; An element describing the gap structure variable to represent on the x-axis: either "p" or "g"

crit

character; An element describing the performance metric of interest

d

numeric; A vector to indicate datasets of interest

m

character; A vector of interpolation methods of interest

f

character; The statistic of interest defining the ribbon. Possible choices are listed in ?agEvaluate

layer_type

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

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.