Learn R Programming

diveMove (version 0.6-9)

rqPlot: Plot of quantile regression for speed calibrations

Description

Plot of quantile regression for assessing quality of speed calibrations

Usage

rqPlot(rddepth, speed, z, contours, rqFit, main="qtRegression",
       xlab="rate of depth change (m/s)", ylab="speed (m/s)",
       colramp=colorRampPalette(c("white", "darkblue")))

Arguments

speed
speed in m/s.
rddepth
numeric vector with rate of depth change.
z
a list with the bivariate kernel density estimates (1st component the x points of the mesh, 2nd the y points, and 3rd the matrix of densities).
contours
numeric vector indicating which contours to draw; passed to contour.
rqFit
object of class rq representing a quantile regression fit of rate of depth change on mean speed.
main
string; title prefix to include in ouput plot.
xlab, ylab
axis labels.
colramp
function taking an integer n as an argument and returning n colors.

Details

The dashed line in the plot represents a reference indicating a one to one relationship between speed and rate of depth change. The other line represent the quantile regression fit.

See Also

diveStats