Learn R Programming

RGCxGC (version 1.2.0)

plot: Method plot

Description

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

Usage

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

# S4 method for 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 Reichenbach2004;textualRGCxGC, interpolation is used to display non-native GCxGC data.

References

Examples

Run this code

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))

Run the code above in your browser using DataLab