LofL: Create a List of Contour Levels

View source: R/LofL.R

LofLR Documentation

Create a List of Contour Levels

Description

When overlaying multiple 2D NMR spectra, one needs to supply a vector of contour levels for each spectrum, as a list. This is a convenience function which takes a set of levels and copies it into a list, ready for use with plotSpectra2D.

Usage

LofL(lvls, n)

Arguments

lvls

Numeric. A vector of the desired levels.

n

Integer. The number of spectra to be plotted, which is also the number of times to replicate the levels.

Value

A list of length n; each entry is a copy of lvls.

See Also

plotSpectra2D for an example.


bryanhanson/ChemoSpec2D documentation built on June 13, 2025, 3:56 p.m.