Learn R Programming

baseline (version 1.3-5)

baselineGUI: Interactive plotting tool

Description

An interactive plotting tool for dynamic visualization of baselines and their effect using the gWidgets2 package with GTK+ or Tcl/Tk.

Usage

baselineGUI(spectra, method='irls', labels, rev.x = FALSE)

Arguments

spectra

Matrix with spectra in rows

method

Baseline correction method (optional)

labels

Labels for X-axis (optional)

rev.x

Reverse X-axis (optional, default=FALSE)

Author

Kristian Hovde Liland and Bjørn-Helge Mevik

Details

Creates and updates a list containing current baseline and spectrum (baseline.result). Make sure a gWidget2 implementation is available, e.g gWidgets2RGtk2 or gWidgets2tcltk and a corresponding backend like GTK+ or Tcl/Tk. The GUI was developed using GTK which is an external dependency in Windows ans OS X.

Examples

Run this code
data(milk)
if (FALSE) {
# Dependent on external software
baselineGUI(milk$spectra)
}

Run the code above in your browser using DataLab