R: Counts-per-second axis labels

cps_label {ggspectra} | R Documentation

## Counts-per-second axis labels

### Description

Generate cps axis labels in SI units, using SI scale factors. Output can be selected as character, expression (R default devices) or LaTeX (for tikz device).

### Usage

    cps_label(unit.exponent = 0, format = getOption("photobiology.math", default
      = "R.expression"))

### Arguments

`unit.exponent` | integer
`format` | character string, "R", "R.expresion", "R.character", or "LaTeX".

### Value

a character string or an R expression.

### Examples

    cps_label()
    cps_label(3)
    cps_label(format = "R.expression")
    cps_label(format = "LaTeX")
    cps_label(3, format = "LaTeX")

[Package ggspectra version 0.2.3 Index]