Learn R Programming

diveMove (version 0.6-9)

TDRcalibrate-methods: Methods to Print and Extract Basic Information from "TDRcalibrate" Objects

Description

Plot, print summaries and extract information from "TDRcalibrate" objects.

Usage

## S3 method for class 'TDRcalibrate,missing':
getDAct(x)
## S3 method for class 'TDRcalibrate,character':
getDAct(x, y)
## S3 method for class 'TDRcalibrate,missing':
getDPhaseLab(x)
## S3 method for class 'TDRcalibrate,numeric':
getDPhaseLab(x, diveNo)
## S3 method for class 'TDRcalibrate,missing':
getGAct(x)
## S3 method for class 'TDRcalibrate,character':
getGAct(x, y)
## S3 method for class 'TDRcalibrate,missing':
plot(x, diveNo=seq(unique(getDAct(x, "dive.id"))),
     labels="phase.id", concurVars=NULL, surface=FALSE, ...)

Arguments

x
"TDRcalibrate" object.
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.
concurVars
character vector indicating which additional components from the concurrent data frame should also be plotted, if any.
surface
logical indicating whether to plot surface readings.
...
further arguments to plotDive.
y
string; dive.id, dive.activity, or postdive.id in the case of getDAct, to extract the numeric dive ID, the factor identifying dive phases in each dive, or the numeric postdive ID,

Value

  • The extractor methods return an object of the same class as elements of the slot they extracted.

Plotting and Printing Methods

show{signature(object = "TDRcalibrate"): prints an informative summary of the data.}

plot{signature(x = "TDRcalibrate", y = "missing"): plot the TDR object, labelling identified sections of it (see Usage).}