plot {RGCxGC}R Documentation

Method plot

Description

'plot' plot the two-dimensional chromatogram as a contour plot.

Usage

plot(Object, type = "f", ...)

## S4 method for signature 'GCxGC'
plot(Object, type = "f", ...)

Arguments

Object

a GCxGC chromatogram, it can be a raw, or preprocessed chromatogram.

type

a character indicating the type of chromatogram representation. By default, type = "f" for filled.contour function, if type = "c" only contours or isolines will be displayed by using the contour function.

...

Other parameters passed to filled.contour or filled.contour function, it depends on the value of the type argument.

Details

This plot function employs the built-in contour function. As mentioned in Reichenbach et al. (2004), interpolation is used to display non-native GCxGC data.

References

Reichenbach SE, Ni M, Kottapalli V, Visvanathan A (2004). “Information technologies for comprehensive two-dimensional gas chromatography.” Chemometrics and Intelligent Laboratory Systems, 71(2), 107–120.

Examples


library(colorRamps)
chrom_name <-  system.file("extdata", "08GB.cdf", package = "RGCxGC")
chrom_2D <- read_chrom(chrom_name, 5L)
plot(chrom_2D, nlevels = 150, color.palette = matlab.like)
plot(chrom_2D, type = "c", nlevels = 50, col = matlab.like(30))

[Package RGCxGC version 1.2.0 Index]