Learn R Programming

diveMove (version 1.1)

plotTDR-methods: Methods for plotting objects of class "TDR", "TDRspeed", and "TDRcalibrate"

Description

Main plotting method for objects of these classes.

Usage

## S3 method for class 'TDR':
plotTDR(x, \ldots)
## S3 method for class 'TDRspeed':
plotTDR(x, concurVars, concurVarTitles, \ldots)
## S3 method for class 'TDRcalibrate':
plotTDR(x, diveNo=seq(max(getDAct(x, "dive.id"))),
        labels="phase.id", concurVars, surface=FALSE, ...)

Arguments

x
concurVars, concurVarTitles, ...
Arguments passed to plotTD. For the TDRspeed method, concurVars is a matrix with variables to plot, in addition to speed, if any.
diveNo
Numeric vector with dive numbers to plot.
labels
One of phase.id or dive.phase, specifying whether to label observations based on the gross phase ID of the TDR object, or based on each dive phase, respectively.
surface
Logical indicating whether to plot surface readings.

Value

  • If called with the interact argument set to TRUE, returns coordinates from the visual ZOC method (see calibrateDepth and underlying plotTD).

See Also

calibrateDepth, plotTD, .zoc

Examples

Run this code
data(divesTDR)
divesTDR

plotTDR(divesTDR, interact=FALSE)

data(divesTDRcalibrate)
divesTDRcalibrate

plotTDR(divesTDRcalibrate, interact=FALSE)
plotTDR(divesTDRcalibrate, diveNo=19:25, interact=FALSE)
plotTDR(divesTDRcalibrate, labels="dive.phase", interact=FALSE)

Run the code above in your browser using DataLab