Learn R Programming

diveMove (version 1.2.1)

plotDiveModel-methods: Methods for plotting models of dive phases

Description

Methods for function plotDiveModel.

Usage

## S3 method for class 'diveModel,missing':
plotDiveModel(x, diveNo)

## S3 method for class 'numeric,numeric': plotDiveModel(x, y, times.s, depths.s, d.crit, a.crit, diveNo=1, times.deriv, depths.deriv, d.crit.rate, a.crit.rate)

## S3 method for class 'TDRcalibrate,missing': plotDiveModel(x, diveNo)

Arguments

x
A diveModel (diveMode,missing method), numeric vector of time step observations (numeric,numeric method), or
diveNo
integer representing the dive number selected for plotting.
y
numeric vector with depth observations at each time step.
times.s
numeric vector with time steps used to generate the smoothing spline (i.e. the knots, see diveModel.
depths.s
numeric vector with smoothed depth (see diveModel).
d.crit
integer denoting the index where descent ends in the observed time series (see diveModel).
a.crit
integer denoting the index where ascent begins in the observed time series (see diveModel).
times.deriv
numeric vector representing the time steps where the derivative of the smoothing spline was evaluated diveModel.
depths.deriv
numeric vector representing the derivative of the smoothing spline evaluated at times.deriv diveModel.
d.crit.rate
numeric scalar: vertical rate of descent corresponding to the quantile used (see diveModel.
a.crit.rate
numeric scalar: vertical rate of ascent corresponding to the quantile used (see diveModel.

See Also

diveModel

Examples

Run this code
## Continuing the Example from '?calibrateDepth':
utils::example("calibrateDepth", package="diveMove",
               ask=FALSE, echo=FALSE)

## 'diveModel' method
dm <- getDiveModel(dcalib, 100)
plotDiveModel(dm, diveNo=100)

## 'TDRcalibrate' method
plotDiveModel(dcalib, diveNo=100)

Run the code above in your browser using DataLab