plotTDR-methods {diveMove}R Documentation

Methods for plotting objects of class "TDR", "TDRspeed", and "TDRcalibrate"

Description

Main plotting method for objects of these classes.

Usage

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

Arguments

x TDR, TDRspeed, or TDRcalibrate object.
concurVars, concurVarTitles, ... Arguments passed to plotTD. For the TDRspeed method, concurVars is a matrix with variables to plot, in addition to speed, if any. concurVarTitles in this case is a character vector with axis labels for speed and the additional variables supplied in concurVars. For the TDRcalibrate method, concurVars is a character vector indicating which additional components from the concurrent data frame should also be plotted, 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 ZOC procedure (see zoc).

Methods

plotTDR
signature(x="TDR"): interactive graphical display of the data, with zooming and panning capabilities.
plotTDR
signature(x="TDRspeed"): As the TDR method, but also plots the concurrent speed readings.
plotTDR
signature(x="TDRcalibrate"): plot the TDR object, labelling identified sections of it (see Usage).

Author(s)

Sebastian P. Luque spluque@gmail.com

See Also

zoc

Examples


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)


[Package diveMove version 0.9.5 Index]