R: Add decorations to spectrum plot (private)

decoration {ggspectra} | R Documentation

## Add decorations to spectrum plot (private)

### Description

Add decorations to plots generated by the plot() methods defined in this package. It collects code that is common to plot methods for different types of spectra but as it may change in the future it is not exported.

### Usage

    decoration(w.band, y.max, y.min, x.max, x.min, annotations, span = NULL,
      label.qty, label.mult = 1, summary.label, unit.out = NULL,
      time.unit = NULL, text.size = 2.5, label.color = NULL, pos.shift = 0,
      na.rm = TRUE)

### Arguments

`w.band` | waveband object or list of waveband objects
`annotations` | character vector
`span` | numeric
`label.qty` | character
`summary.label` | character
`text.size` | numeric
`label.color` | color definition or name
`pos.shift` | numeric
`na.rm` | logical
`ymax, ymin, xmax, xmin` | numeric

### Value

A list of ggplot "components" that can be added to a ggplot object with operator "+". The length of the list depends on the value of argument `annotations`.

[Package ggspectra version 0.2.3 Index]