Skip to contents

The Quilt function is used both to create and modify an Quilt-class() object. and to access and assign Quilt for an object of class Slick-class(). See Details.

Usage

Quilt(
  Code = "",
  Label = "",
  Description = "",
  Value = array(),
  Preset = list(),
  Color = c("white", "darkblue"),
  MinValue = 0,
  MaxValue = as.numeric(NA)
)

Quilt(Slick) <- value

# S4 method for missing
Quilt()

# S4 method for character_list
Quilt(
  Code = "",
  Label = "",
  Description = "",
  Value = array(),
  Preset = list(),
  Color = c("white", "darkblue"),
  MinValue = 0,
  MaxValue = as.numeric(NA)
)

# S4 method for Slick
Quilt(Code)

# S4 method for Slick
Quilt(Slick) <- value

Arguments

Code

A short code for the Performance Indicators for this object. A character string length nPI or a named list for multi-language support. See Details

Label

A short label for the Performance Indicators for this object. Used to label axes on charts. Can be longer than Code but recommended to keep short as possible so it shows clearly in plots and tables. A character string length nPI or a named list for multi-language support. See Details

Description

A description for the Performance Indicators for this object. Can include Markdown, see Examples. A character string length nPI or a named list for multi-language support. See Details

Value

A numeric array with the stochastic performance indicator values for each operating model (OM), management procedure (MP), and performance indicator (PI). Dimensions: c(nOM, nMP, and nPI)

Preset

An optional named list for the preset buttons in the App(). The name of the list element will appear as a button in the App().

Color

A character vector length 2 of colors for the maximum and minimum values in the chart.

MinValue

Numeric vector length nPI with the minimum possible value for the respective PIs. Defaults to 0.

MaxValue

Numeric vector length nPI with the maximum possible value (i.e., best performance) for the respective PIs. Defaults to maximum PI value in Value (averaged across OMs in some cases).

Slick

A Slick-class() object

value

A Quilt-class() object

Details

Objects of class Quilt are created with Quilt()

Use the Code(), Label(), Description(), Value(), Preset(), Color(), MinValue, and MaxValue functions to access and assign the values for an existing Quilt object, see Examples

Multi-Language Support

Text with multi-language supported can be provided as a named list. Available languages:

  • en: English (default)

  • es: Spanish

  • fr: French

Note

Character strings in Code, Label, and Description must all be same length as the number of performance indicators (nPIs) in Value

Functions

  • Quilt(missing): Create an empty Quilt object

  • Quilt(character_list): Create a populated Quilt object

  • Quilt(Slick): Return Quilt from a Slick-class() object

  • Quilt(Slick) <- value: Assign a Quilt-class() object to a Slick-class() object