Plot loess smoothed curves

Share:

Description

Plots curves with various levels of loess smoothing to help determine what loess parameters are best for the data.

Usage

1
2
plotsmooth(rspecdata, minsmooth = 0.05, maxsmooth = 0.2, curves = 5,
  specnum = 0, ask = TRUE)

Arguments

rspecdata

(required) a data frame, possibly of class rspec, which contains a column containing a wavelength range , named 'wl', and spectra data in remaining columns.

minsmooth

the minimum f value of the loess function to visualize (defaults to 0.05).

maxsmooth

the maximum f value of the loess function to visualize (defaults to 0.20).

curves

the number of curves to display on the same plot (defaults to 5).

specnum

the number of spectral curves, from the data frame, to visualize (defaults to ALL).

ask

logical. if TRUE, asks for user input before changing plot pages

Value

Series of plot with curves processed with varying level of loess smoothing

Author(s)

Pierre-Paul Bitton bittonp@uwindsor.ca

Examples

1
2
3
4
5
## Not run: 
data(sicalis)
plotsmooth(sicalis,0.05,0.1,7,6)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.