plotSpectra: Plot spectra

Description Usage Arguments Author(s) Examples

View source: R/plotSpectra.r

Description

Function to plot the ensemble spectra output from EddyPro.

Usage

1
2
3
plotSpectra(data, gas, xlab = "Frequency [Hz]", ylab = "Spectrum", avgT
= FALSE, predicted = FALSE, type = c("o", "o", "o"), col = c(1, 2, 4),
pch=c(1,1,1), na.value = "NaN", ...)

Arguments

data

The data frame.

gas

A character giving the name of the gas which spectra will be plotted.

xlab

The label for the x axis.

ylab

The label for the y axis.

avgT

Logical. If TRUE the avgT will be plotted.

predicted

Logical. If TRUE the predicted spectra will be plotted.

type

The type of plot. Default is point-line. It can be a single value or an array.

col

The color of the points/lines. It can be a single value or an array.

pch

The type of points to use. It can be a single value or an array.

na.value

The number/string to use for identifying NA values.

...

Further graphical parameters.

Author(s)

Georgios Xenakis

Examples

1
2
3
4
5
6
7
8
## Close any previously open graphic devices
graphics.off()

## Load the data
data(spectra)

## Plot the spectra
plotSpectra(spectra,"co2",predict=TRUE,avgT=TRUE,type=c('p','l','l'),pch=c(16,-1,-1))

Example output

Warning message:
In xy.coords(x, y, xlabel, ylabel, log) :
  3 y values <= 0 omitted from logarithmic plot

FREddyPro documentation built on May 29, 2017, 7:22 p.m.