plot.xSec: plot.xSec

Description Usage Arguments Details Value See Also Examples

View source: R/plot.xSec.R

Description

Plots cross-section velocities given an object of class "adcp.secondary"

Usage

1
plot.xSec(data, x, transects, ...)

Arguments

data

An object of class "adcp.secondary"

x

Parameter to be plotted

transects

A list of transects to be plotted, if missing all transects are plotted

...

Arguments to be passed to plot.xSec.default.

Details

Use transects argument to subset data by transect, may produce error if data is subset prior to being supplied to function.

Value

A list of levelplot plots. Transect names contained within the dataset are used to name each element (i.e., plot) within the list.

See Also

plot.xSec.default, levelplot, process.secondary.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(mNine)
#mNine is a list of MATLAB files
names(mNine)
#Drop the last letter (l or r) from the MATLAB file names
tNames <- substr(names(mNine), 0, nchar(names(mNine))-1)
adcp.secondary <- process.secondary(mNine, tNames, rotation = c("xSec", "rozovskii", "zeroSecQ"), xWindow = 21, yWindow = 5)
secondaryQ.zsq <- plot.xSec(adcp.secondary, vp.zsq)
#Display first cross-section
secondaryQ.zsq[[1]]
#Alternatively
secondaryQ.zsq$t1

jasonfischer/rivSurveyR documentation built on May 18, 2019, 5:54 p.m.